Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 201 for Map (0.02 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  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/go/types/objset.go

    // object name.
    
    package types
    
    // An objset is a set of objects identified by their unique id.
    // The zero value for objset is a ready-to-use empty objset.
    type objset map[string]Object // initialized lazily
    
    // insert attempts to insert an object obj into objset s.
    // If s already contains an alternative object alt with
    // the same name, insert leaves s unchanged and returns alt.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/util.go

    func localFunctionDecls(info *types.Info, files []*ast.File) func(*types.Func) *ast.FuncDecl {
    	var fnDecls map[*types.Func]*ast.FuncDecl // computed lazily
    	return func(f *types.Func) *ast.FuncDecl {
    		if f != nil && fnDecls == nil {
    			fnDecls = make(map[*types.Func]*ast.FuncDecl)
    			for _, file := range files {
    				for _, decl := range file.Decls {
    					if fnDecl, ok := decl.(*ast.FuncDecl); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. 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)
  9. src/internal/trace/base.go

    type evTable struct {
    	freq    frequency
    	strings dataTable[stringID, string]
    	stacks  dataTable[stackID, stack]
    	pcs     map[uint64]frame
    
    	// extraStrings are strings that get generated during
    	// parsing but haven't come directly from the trace, so
    	// they don't appear in strings.
    	extraStrings   []string
    	extraStringIDs map[string]extraStringID
    	nextExtra      extraStringID
    
    	// expData contains extra unparsed data that is accessible
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. src/net/internal/socktest/switch.go

    // A Switch represents a callpath point switch for socket system
    // calls.
    type Switch struct {
    	once sync.Once
    
    	fmu   sync.RWMutex
    	fltab map[FilterType]Filter
    
    	smu   sync.RWMutex
    	sotab Sockets
    	stats stats
    }
    
    func (sw *Switch) init() {
    	sw.fltab = make(map[FilterType]Filter)
    	sw.sotab = make(Sockets)
    	sw.stats = make(stats)
    }
    
    // Stats returns a list of per-cookie socket statistics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top