mirror of
https://github.com/golang/go.git
synced 2025-12-07 13:50:04 +00:00
The new methods are Type.Fields, Type.Methods, Type.Ins, Type.Outs,
Value.Fields and Value.Methods.
These methods have been introduced into the reflect package (as well
as tests) replacing three-clause for loops where possible.
Fixes #66631
Change-Id: Iab346e52c0eadd7817afae96d9ef73a35db65fd2
GitHub-Last-Rev: 8768ef71b9
GitHub-Pull-Request: golang/go#75646
Reviewed-on: https://go-review.googlesource.com/c/go/+/707356
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
6 lines
409 B
Text
6 lines
409 B
Text
pkg reflect, type Type interface, Fields() iter.Seq[StructField] #66631
|
|
pkg reflect, type Type interface, Methods() iter.Seq[Method] #66631
|
|
pkg reflect, type Type interface, Ins() iter.Seq[Type] #66631
|
|
pkg reflect, type Type interface, Outs() iter.Seq[Type] #66631
|
|
pkg reflect, method (Value) Fields() iter.Seq2[StructField, Value] #66631
|
|
pkg reflect, method (Value) Methods() iter.Seq2[Method, Value] #66631
|