Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 343 for Map (0.02 sec)

  1. src/crypto/internal/hpke/hpke_test.go

    }
    
    func parseVectorSetup(vector string) map[string]string {
    	vals := map[string]string{}
    	for _, l := range strings.Split(vector, "\n") {
    		fields := strings.Split(l, ": ")
    		vals[fields[0]] = fields[1]
    	}
    	return vals
    }
    
    func parseVectorEncryptions(vector string) []map[string]string {
    	vals := []map[string]string{}
    	for _, section := range strings.Split(vector, "\n\n") {
    		e := map[string]string{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/reflect/benchmark_test.go

    }
    
    func BenchmarkMap(b *testing.B) {
    	type V *int
    	type S string
    	value := ValueOf((V)(nil))
    	stringKeys := []string{}
    	mapOfStrings := map[string]V{}
    	uint64Keys := []uint64{}
    	mapOfUint64s := map[uint64]V{}
    	userStringKeys := []S{}
    	mapOfUserStrings := map[S]V{}
    	for i := 0; i < 100; i++ {
    		stringKey := fmt.Sprintf("key%d", i)
    		stringKeys = append(stringKeys, stringKey)
    		mapOfStrings[stringKey] = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  3. src/mime/multipart/formdata.go

    	multipartmaxparts = godebug.New("multipartmaxparts")
    )
    
    func (r *Reader) readForm(maxMemory int64) (_ *Form, err error) {
    	form := &Form{make(map[string][]string), make(map[string][]*FileHeader)}
    	var (
    		file    *os.File
    		fileOff int64
    	)
    	numDiskFiles := 0
    	combineFiles := true
    	if multipartfiles.Value() == "distinct" {
    		combineFiles = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. src/go/token/token.go

    	ELSE:        "else",
    	FALLTHROUGH: "fallthrough",
    	FOR:         "for",
    
    	FUNC:   "func",
    	GO:     "go",
    	GOTO:   "goto",
    	IF:     "if",
    	IMPORT: "import",
    
    	INTERFACE: "interface",
    	MAP:       "map",
    	PACKAGE:   "package",
    	RANGE:     "range",
    	RETURN:    "return",
    
    	SELECT: "select",
    	STRUCT: "struct",
    	SWITCH: "switch",
    	TYPE:   "type",
    	VAR:    "var",
    
    	TILDE: "~",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. src/internal/concurrent/hashtriemap_test.go

    	})
    }
    
    func testAll[K, V comparable](t *testing.T, m *HashTrieMap[K, V], testData map[K]V, yield func(K, V) bool) {
    	for k, v := range testData {
    		expectStored(t, k, v)(m.LoadOrStore(k, v))
    	}
    	visited := make(map[K]int)
    	m.All()(func(key K, got V) bool {
    		want, ok := testData[key]
    		if !ok {
    			t.Errorf("unexpected key %v in map", key)
    			return false
    		}
    		if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. src/net/textproto/header.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package textproto
    
    // A MIMEHeader represents a MIME-style header mapping
    // keys to sets of values.
    type MIMEHeader map[string][]string
    
    // Add adds the key, value pair to the header.
    // It appends to any existing values associated with key.
    func (h MIMEHeader) Add(key, value string) {
    	key = CanonicalMIMEHeaderKey(key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/reflect/export_test.go

    func MapBucketOf(x, y Type) Type {
    	return toType(bucketOf(x.common(), y.common()))
    }
    
    func CachedBucketOf(m Type) Type {
    	t := m.(*rtype)
    	if Kind(t.t.Kind_&abi.KindMask) != Map {
    		panic("not map")
    	}
    	tt := (*mapType)(unsafe.Pointer(t))
    	return toType(tt.Bucket)
    }
    
    type EmbedWithUnexpMeth struct{}
    
    func (EmbedWithUnexpMeth) f() {}
    
    type pinUnexpMeth interface {
    	f()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. test/fixedbugs/issue66096.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    type Message struct {
    	Header map[string][]string
    }
    
    func f() {
    	m := Message{Header: map[string][]string{}}
    	m.Header[""] = append([]string(m.Header[""]), "")
    	_ = m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 352 bytes
    - Viewed (0)
  9. src/runtime/traceexp.go

    	// Experimental events for ExperimentAllocFree.
    
    	// Experimental heap span events. IDs map reversibly to base addresses.
    	traceEvSpan      // heap span exists [timestamp, id, npages, type/class]
    	traceEvSpanAlloc // heap span alloc [timestamp, id, npages, type/class]
    	traceEvSpanFree  // heap span free [timestamp, id]
    
    	// Experimental heap object events. IDs map reversibly to addresses.
    	traceEvHeapObject      // heap object exists [timestamp, id, type]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/format.go

    	// Qualify the package unless it's the package being type-checked.
    	if pkg != check.pkg {
    		if check.pkgPathMap == nil {
    			check.pkgPathMap = make(map[string]map[string]bool)
    			check.seenPkgMap = make(map[*Package]bool)
    			check.markImports(check.pkg)
    		}
    		// If the same package name was used by multiple packages, display the full path.
    		if len(check.pkgPathMap[pkg.name]) > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top