]> Cypherpunks repositories - gostls13.git/commit
reflect: document Method(ByName) w.r.t dead code elimination
authorIlya Priven <ilya.konstantinov@gmail.com>
Sat, 15 Mar 2025 22:58:18 +0000 (22:58 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 17 Mar 2025 20:09:29 +0000 (13:09 -0700)
commite41ec30c8a7369872d22113b022b2a31757ff72b
treed62f85a17a2f0e690e79b77cd96022f1020475f4
parentbceade5ef8ab6d28ad363cd7ca60a9be89990a00
reflect: document Method(ByName) w.r.t dead code elimination

The behavior is described in src/cmd/link/internal/ld/deadcode.go
but is not otherwise documented. Since the usage of those functions
could have significant caveats (longer builds, larger binaries),
we are informing the user.

Change-Id: I87571dd14aa16d7aac59fe45dfc52cb7c5b956c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/658255
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/reflect/type.go
src/reflect/value.go