1
0
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:
qiulaidongfeng 2023-08-02 08:31:42 +08:00
parent 7f2bf7845b
commit 7bc2cba772

View File

@ -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.