internal/reflectlite: use reflectlite instead of reflect

Change-Id: I2db6dcc22c17e18e856b43ad92a82430a4800a7a
GitHub-Last-Rev: 8421eef1c9
GitHub-Pull-Request: golang/go#78837
Reviewed-on: https://go-review.googlesource.com/c/go/+/768560
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
This commit is contained in:
Weixie Cui 2026-04-18 09:42:14 +00:00 committed by Gopher Robot
parent 03dc8c482f
commit d8034799e0

View file

@ -351,7 +351,7 @@ func (v Value) Len() int {
// String is bigger than a word; assume flagIndir.
return (*unsafeheader.String)(v.ptr).Len
}
panic(&ValueError{"reflect.Value.Len", v.kind()})
panic(&ValueError{"reflectlite.Value.Len", v.kind()})
}
// NumMethod returns the number of exported methods in the value's method set.