Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for mapTypes (0.9 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    					"field": stringType,
    				}),
    				"mapOfMap": mapType(mapTypePtr(&stringType)),
    				"mapOfObj": mapType(objectTypePtr(map[string]schema.Structural{
    					"field2": stringType,
    				})),
    				"mapOfListMap": mapType(listMapTypePtr([]string{"k"}, objectTypePtr(map[string]schema.Structural{
    					"k": stringType,
    					"v": stringType,
    				}))),
    				"mapOfList": mapType(listTypePtr(&stringType)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  2. src/reflect/value.go

    // As in Go, the key's value must be assignable to the map's key type.
    func (v Value) MapIndex(key Value) Value {
    	v.mustBe(Map)
    	tt := (*mapType)(unsafe.Pointer(v.typ()))
    
    	// Do not require key to be exported, so that DeepEqual
    	// and other programs can use all the keys returned by
    	// MapKeys as arguments to MapIndex. If either the map
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    }
    type Bad2 interface {
    	Bad1
    }
    </pre>
    
    <h3 id="Map_types">Map types</h3>
    
    <p>
    A map is an unordered group of elements of one type, called the
    element type, indexed by a set of unique <i>keys</i> of another type,
    called the key type.
    The value of an uninitialized map is <code>nil</code>.
    </p>
    
    <pre class="ebnf">
    MapType     = "map" "[" KeyType "]" ElementType .
    KeyType     = Type .
    </pre>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top