You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	skip - tag before spliting parts
This commit is contained in:
		| @@ -341,10 +341,10 @@ func describeStruct(ctx *ctx, typ reflect2.Type) *StructDescriptor { | ||||
| 		if ctx.onlyTaggedField && !hastag && !field.Anonymous() { | ||||
| 			continue | ||||
| 		} | ||||
| 		tagParts := strings.Split(tag, ",") | ||||
| 		if tag == "-" { | ||||
| 			continue | ||||
| 		} | ||||
| 		tagParts := strings.Split(tag, ",") | ||||
| 		if field.Anonymous() && (tag == "" || tagParts[0] == "") { | ||||
| 			if field.Type().Kind() == reflect.Struct { | ||||
| 				structDescriptor := describeStruct(ctx, field.Type()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user