mirror of
https://github.com/golang/go
synced 2024-11-17 15:44:40 -07:00
reflect: update Type.FieldByNameFunc documentation
Change-Id: I8de130962e17ca4e76f6e822116dcd4d29a8bea6
This commit is contained in:
parent
7f2bf7845b
commit
7bc2cba772
@ -189,6 +189,7 @@ type Type interface {
|
||||
// and FieldByNameFunc returns no match.
|
||||
// This behavior mirrors Go's handling of name lookup in
|
||||
// structs containing embedded fields.
|
||||
//
|
||||
// If the returned field is promoted from an embedded struct,
|
||||
// then Offset in the returned StructField is the offset in
|
||||
// the embedded struct.
|
||||
|
Loading…
Reference in New Issue
Block a user