Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 211 for Map (0.04 sec)

  1. src/cmd/compile/internal/test/mergelocals_test.go

    	testcases := []struct {
    		vars      []*ir.Name
    		partition map[*ir.Name][]int
    		experr    bool
    	}{
    		{
    			vars: []*ir.Name{v1, v2, v3},
    			partition: map[*ir.Name][]int{
    				v1: []int{0, 1, 2},
    				v2: []int{0, 1, 2},
    				v3: []int{0, 1, 2},
    			},
    			experr: false,
    		},
    		{
    			// invalid mls.v slot -1
    			vars: []*ir.Name{v1, v2, v3},
    			partition: map[*ir.Name][]int{
    				v1: []int{-1, 0},
    				v2: []int{0, 1, 2},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/text/template/template.go

    	return t
    }
    
    // Funcs adds the elements of the argument map to the template's function map.
    // It must be called before the template is parsed.
    // It panics if a value in the map is not a function with appropriate return
    // type or if the name cannot be used syntactically as a function in a template.
    // It is legal to overwrite elements of the map. The return value is the template,
    // so calls can be chained.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/maps/maps.go

    // Values are compared using ==.
    func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool {
    	if len(m1) != len(m2) {
    		return false
    	}
    	for k, v1 := range m1 {
    		if v2, ok := m2[k]; !ok || v1 != v2 {
    			return false
    		}
    	}
    	return true
    }
    
    // EqualFunc is like Equal, but compares values using eq.
    // Keys are still compared with ==.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 20:35:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. doc/next/6-stdlib/99-minor/sync/61696.md

    The [Map.Clear] method deletes all the entries, resulting in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 17:07:25 UTC 2024
    - 105 bytes
    - Viewed (0)
  5. src/mime/type.go

    	"sync"
    )
    
    var (
    	mimeTypes      sync.Map // map[string]string; ".Z" => "application/x-compress"
    	mimeTypesLower sync.Map // map[string]string; ".z" => "application/x-compress"
    
    	// extensions maps from MIME type to list of lowercase file
    	// extensions: "image/jpeg" => [".jpg", ".jpeg"]
    	extensionsMu sync.Mutex // Guards stores (but not loads) on extensions.
    	extensions   sync.Map   // map[string][]string; slice values are append-only.
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. 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)
  7. src/internal/fmtsort/sort.go

    // that are valid map keys.
    package fmtsort
    
    import (
    	"cmp"
    	"reflect"
    	"slices"
    )
    
    // Note: Throughout this package we avoid calling reflect.Value.Interface as
    // it is not always legal to do so and it's easier to avoid the issue than to face it.
    
    // SortedMap is a slice of KeyValue pairs that simplifies sorting
    // and iterating over map entries.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go

    // license that can be found in the LICENSE file.
    
    package counter
    
    import (
    	"bytes"
    	"fmt"
    	"strings"
    	"unsafe"
    
    	"golang.org/x/telemetry/internal/mmap"
    )
    
    type File struct {
    	Meta  map[string]string
    	Count map[string]uint64
    }
    
    func Parse(filename string, data []byte) (*File, error) {
    	if !bytes.HasPrefix(data, []byte(hdrPrefix)) || len(data) < pageSize {
    		if len(data) < pageSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 14:38:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top