Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for filledTypes (0.14 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go

    	return obj, nil
    }
    
    func fill(dataString string, dataInt int, t reflect.Type, v reflect.Value, fillFuncs map[reflect.Type]FillFunc, filledTypes map[reflect.Type]bool) {
    	if filledTypes[t] {
    		// we already filled this type, avoid recursing infinitely
    		return
    	}
    	filledTypes[t] = true
    	defer delete(filledTypes, t)
    
    	// if nil, populate pointers with a zero-value instance of the underlying type
    	if t.Kind() == reflect.Pointer && v.IsNil() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top