From fb382c0ec1f4861aa776650a5f4a6762d5d6ff36 Mon Sep 17 00:00:00 2001 From: Tao Wen Date: Thu, 29 Jun 2017 20:40:07 +0800 Subject: [PATCH] fix -, --- feature_reflect_extension.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feature_reflect_extension.go b/feature_reflect_extension.go index 098bfce..1bc0fd5 100644 --- a/feature_reflect_extension.go +++ b/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 {