diff --git a/src/reflect/type.go b/src/reflect/type.go index aa56fcbe95..003c610cb1 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -735,10 +735,10 @@ func (t *interfaceType) MethodByName(name string) (m Method, ok bool) { // A StructField describes a single field in a struct. type StructField struct { // Name is the field name. + Name string // PkgPath is the package path that qualifies a lower case (unexported) // field name. It is empty for upper case (exported) field names. // See https://golang.org/ref/spec#Uniqueness_of_identifiers - Name string PkgPath string Type Type // field type