Tao Wen пре 8 година
родитељ
комит
fb382c0ec1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      feature_reflect_extension.go

+ 1 - 1
feature_reflect_extension.go

@@ -238,7 +238,7 @@ func describeStruct(cfg *frozenConfig, typ reflect.Type) (*StructDescriptor, err
 			}
 		}
 		tagParts := strings.Split(field.Tag.Get("json"), ",")
-		fieldNames := calcFieldNames(field.Name, tagParts[0], string(field.Tag))
+		fieldNames := calcFieldNames(field.Name, tagParts[0], string(field.Tag.Get("json")))
 		fieldCacheKey := fmt.Sprintf("%s/%s", typ.String(), field.Name)
 		decoder := fieldDecoders[fieldCacheKey]
 		if decoder == nil {