Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fieldCacheMap (0.25 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/converter.go

    	default:
    		return fmt.Errorf("unrecognized type: %v", dt.Kind())
    	}
    
    }
    
    func fieldInfoFromField(structType reflect.Type, field int) *fieldInfo {
    	fieldCacheMap := fieldCache.value.Load().(fieldsCacheMap)
    	if info, ok := fieldCacheMap[structField{structType, field}]; ok {
    		return info
    	}
    
    	// Cache miss - we need to compute the field name.
    	info := &fieldInfo{}
    	typeField := structType.Field(field)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 24.9K bytes
    - Viewed (0)
Back to top