- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 343 for Map (0.02 sec)
-
src/sync/map_reference_test.go
} func (m *DeepCopyMap) Range(f func(key, value any) (shouldContinue bool)) { clean, _ := m.clean.Load().(map[any]any) for k, v := range clean { if !f(k, v) { break } } } func (m *DeepCopyMap) dirty() map[any]any { clean, _ := m.clean.Load().(map[any]any) dirty := make(map[any]any, len(clean)+1) for k, v := range clean { dirty[k] = v } return dirty }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 5.6K bytes - Viewed (0) -
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) -
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) -
src/cmd/compile/internal/types/pkg.go
// instantiations. p.Prefix = path } else { p.Prefix = objabi.PathToPrefix(path) } p.Syms = make(map[string]*Sym) pkgMap[path] = p return p } func PkgMap() map[string]*Pkg { return pkgMap } var nopkg = &Pkg{ Syms: make(map[string]*Sym), } func (pkg *Pkg) Lookup(name string) *Sym { s, _ := pkg.LookupOK(name) return s }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:28:50 UTC 2023 - 3.1K bytes - Viewed (0) -
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) -
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) -
test/fixedbugs/issue62203.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:10:03 UTC 2023 - 688 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/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/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)