- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 343 for Map (0.02 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/validate.go
func Validate(analyzers []*Analyzer) error { // Map each fact type to its sole generating analyzer. factTypes := make(map[reflect.Type]*Analyzer) // Traverse the Requires graph, depth first. const ( white = iota grey black finished ) color := make(map[*Analyzer]uint8) var visit func(a *Analyzer) error visit = func(a *Analyzer) error { if a == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 3.1K bytes - Viewed (0) -
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) -
src/go/ast/resolve.go
return false } // An Importer resolves import paths to package Objects. // The imports map records the packages already imported, // indexed by package id (canonical import path). // An Importer must determine the canonical import path and // check the map to see if it is already present in the imports map. // If so, the Importer can return the map entry. Otherwise, the // Importer should load the package data for the given path into
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 5.4K bytes - Viewed (0) -
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) -
src/debug/dwarf/open.go
// New sections added in DWARF 5. addr []byte lineStr []byte strOffsets []byte rngLists []byte // parsed data abbrevCache map[uint64]abbrevTable bigEndian bool order binary.ByteOrder typeCache map[Offset]Type typeSigs map[uint64]*typeUnit unit []unit } var errSegmentSelector = errors.New("non-zero segment_selector size not supported")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 4.1K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/reflectdata/helpers.go
// map type. func DeleteMapRType(pos src.XPos, n *ir.CallExpr) ir.Node { assertOp(n, ir.ODELETE) if hasRType(n, n.RType, "RType") { return n.RType } return mapRType(pos, n.Args[0].Type()) } // IndexMapRType asserts that n is a map index operation, and returns // an expression that yields the *runtime._type value representing the // map type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0) -
src/reflect/type_test.go
{"struct{}", args{reflect.TypeOf(struct{}{})}, true}, {"struct{i int; s S}", args{reflect.TypeOf(struct { i int s S }{})}, true}, {"map[int][int]", args{reflect.TypeOf(map[int]int{})}, false}, {"[4]chan int", args{reflect.TypeOf([4]chan int{})}, true}, {"[0]struct{_ S}", args{reflect.TypeOf([0]struct { _ S }{})}, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 4.2K bytes - Viewed (0) -
src/internal/reflectlite/reflect_mirror_test.go
"uncommonType", "arrayType", "chanType", "funcType", "interfaceType", "ptrType", "sliceType", "structType", } type visitor struct { m map[string]map[string]bool } func newVisitor() visitor { v := visitor{} v.m = make(map[string]map[string]bool) return v } func (v visitor) filter(name string) bool { for _, typeName := range typeNames { if typeName == name { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 21:11:15 UTC 2024 - 2.8K bytes - Viewed (0) -
test/live2.go
package main // issue 8142: lost 'addrtaken' bit on inlined variables. func printnl() //go:noescape func useT40(*T40) type T40 struct { m map[int]int } func newT40() *T40 { ret := T40{} ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$" return &ret } func bad40() { t := newT40() // ERROR "stack object ret T40$" "stack object .autotmp_[0-9]+ runtime.hmap$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 23:29:33 UTC 2023 - 953 bytes - Viewed (0)