mirror of
https://github.com/golang/go.git
synced 2026-06-27 19:30:52 +00:00
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:
parent
03dc8c482f
commit
d8034799e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue