Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. src/runtime/covermeta.go

    	id := rtcov.AddMeta(p, dlen, hash, pkgpath, pkgid, cmode, cgran)
    	if id == 0 {
    		throw("runtime.addCovMeta: coverage package map collision")
    	}
    	return id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 603 bytes
    - Viewed (0)
  3. src/net/http/servemux121.go

    		use121 = true
    		httpmuxgo121.IncNonDefault()
    	}
    }
    
    // serveMux121 holds the state of a ServeMux needed for Go 1.21 behavior.
    type serveMux121 struct {
    	mu    sync.RWMutex
    	m     map[string]muxEntry
    	es    []muxEntry // slice of entries sorted from longest to shortest.
    	hosts bool       // whether any patterns contain hostnames
    }
    
    type muxEntry struct {
    	h       Handler
    	pattern string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:40:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/testing/fstest/mapfs.go

    //
    // File system operations read directly from the map,
    // so that the file system can be changed by editing the map as needed.
    // An implication is that file system operations must not run concurrently
    // with changes to the map, which would be a race.
    // Another implication is that opening or reading a directory requires
    // iterating over the entire map, so a MapFS should typically be used with not more
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    var kvFuncs = map[string]map[string]int{
    	"": map[string]int{
    		"Debug":        1,
    		"Info":         1,
    		"Warn":         1,
    		"Error":        1,
    		"DebugContext": 2,
    		"InfoContext":  2,
    		"WarnContext":  2,
    		"ErrorContext": 2,
    		"Log":          3,
    		"Group":        1,
    	},
    	"Logger": map[string]int{
    		"Debug":        1,
    		"Info":         1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. src/internal/dag/parse.go

    package dag
    
    import (
    	"cmp"
    	"fmt"
    	"slices"
    	"strings"
    )
    
    type Graph struct {
    	Nodes   []string
    	byLabel map[string]int
    	edges   map[string]map[string]bool
    }
    
    func newGraph() *Graph {
    	return &Graph{byLabel: map[string]int{}, edges: map[string]map[string]bool{}}
    }
    
    func (g *Graph) addNode(label string) bool {
    	if _, ok := g.byLabel[label]; ok {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/decls0.go

    		I10
    	}
    	I10 interface {
    		I11
    	}
    	I11 interface {
    		I9
    	}
    
    	C1 chan int
    	C2 <-chan int
    	C3 chan<- C3
    	C4 chan C5
    	C5 chan C6
    	C6 chan C4
    
    	M1 map[Last]string
    	M2 map[string]M2
    
    	Last int
    )
    
    // cycles in function/method declarations
    // (test cases for issues #5217, #25790 and variants)
    func f1(x f1 /* ERROR "not a type" */ ) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/go/types/gccgosizes.go

    // license that can be found in the LICENSE file.
    
    // This is a copy of the file generated during the gccgo build process.
    // Last update 2019-01-22.
    
    package types
    
    var gccgoArchSizes = map[string]*StdSizes{
    	"386":         {4, 4},
    	"alpha":       {8, 8},
    	"amd64":       {8, 8},
    	"amd64p32":    {4, 8},
    	"arm":         {4, 8},
    	"armbe":       {4, 8},
    	"arm64":       {8, 8},
    	"arm64be":     {8, 8},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. src/go/types/mono.go

    //
    // For example, given:
    //
    //	func f[A, B any]() {
    //		type T int
    //		f[T, map[A]B]()
    //	}
    //
    // we construct vertices representing types A, B, and T. Because of
    // declaration "type T int", we construct edges T<-A and T<-B with
    // weight 1; and because of instantiation "f[T, map[A]B]" we construct
    // edges A<-T with weight 0, and B<-A and B<-B with weight 1.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. src/internal/fmtsort/sort_test.go

    type sortTest struct {
    	data  any    // Always a map.
    	print string // Printed result using our custom printer.
    }
    
    var sortTests = []sortTest{
    	{
    		map[int]string{7: "bar", -3: "foo"},
    		"-3:foo 7:bar",
    	},
    	{
    		map[uint8]string{7: "bar", 3: "foo"},
    		"3:foo 7:bar",
    	},
    	{
    		map[string]string{"7": "bar", "3": "foo"},
    		"3:foo 7:bar",
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top