// FieldByName returns the struct field with the given name
// and a boolean indicating if the field was found.
+ // If the returned field is promoted from an embedded struct,
+ // then Offset in the returned StructField is the offset in
+ // the embedded struct.
FieldByName(name string) (StructField, bool)
// FieldByNameFunc returns the struct field with a name
// 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.
FieldByNameFunc(match func(string) bool) (StructField, bool)
// In returns the type of a function type's i'th input parameter.