mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-04 04:28:08 +00:00 
			
		
		
		
	Update to newest go-metrics, go mod vendor. (#8311)
This commit is contained in:
		
							
								
								
									
										4
									
								
								vendor/github.com/json-iterator/go/reflect_extension.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/json-iterator/go/reflect_extension.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -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 == "-" {
 | 
			
		||||
		if tag == "-" || field.Name() == "_" {
 | 
			
		||||
			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