Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SetMapIndex (0.1 sec)

  1. pkg/apis/core/v1/defaults_test.go

    				// if we don't already have a value, and contain structs, add an empty item so we can recurse
    				item := reflect.New(visit.value.Type().Elem()).Elem()
    				visit.value.Set(reflect.MakeMap(visit.value.Type()))
    				visit.value.SetMapIndex(reflect.New(visit.value.Type().Key()).Elem(), item)
    				toVisit = append(toVisit, testPath{path: visit.path + "[*]", value: item})
    			} else if !isPrimitive(visit.value.Type().Elem().Kind()) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top