mirror of https://github.com/golang/go.git
v.SetIterXXX(i) is semantically identical to v.Set(i.XXX()). If the latter panics for unexported values, so should the former. This change may breaking some programs, but the change is justified under the "Go 1 and the Future of Go Programs" document because the "library has a bug that violates the specification". In this case, the "reflect" package does not accurately match the behavior of the Go language specification. Also, this API was recently released, so the number of users who could be depending on this behavior is hopefully lower. Fixes #54628 Change-Id: If86ede51f286e38093f6697944c089f616525115 Reviewed-on: https://go-review.googlesource.com/c/go/+/425184 Auto-Submit: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: David Chase <drchase@google.com> |
||
|---|---|---|
| .. | ||
| internal | ||
| abi.go | ||
| abi_test.go | ||
| all_test.go | ||
| asm_386.s | ||
| asm_amd64.s | ||
| asm_arm.s | ||
| asm_arm64.s | ||
| asm_loong64.s | ||
| asm_mips64x.s | ||
| asm_mipsx.s | ||
| asm_ppc64x.s | ||
| asm_riscv64.s | ||
| asm_s390x.s | ||
| asm_wasm.s | ||
| deepequal.go | ||
| example_test.go | ||
| export_test.go | ||
| float32reg_generic.go | ||
| float32reg_ppc64x.s | ||
| float32reg_riscv64.s | ||
| makefunc.go | ||
| nih_test.go | ||
| set_test.go | ||
| stubs_ppc64x.go | ||
| stubs_riscv64.go | ||
| swapper.go | ||
| tostring_test.go | ||
| type.go | ||
| value.go | ||
| visiblefields.go | ||
| visiblefields_test.go | ||