- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 200 for Map (0.02 sec)
-
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/methodsetcache.go
// MethodSet(T) is called so that repeat queries are fast. // The zero value is a ready-to-use cache instance. type MethodSetCache struct { mu sync.Mutex named map[*types.Named]struct{ value, pointer *types.MethodSet } // method sets for named N and *N others map[types.Type]*types.MethodSet // all other types } // MethodSet returns the method set of type T. It is thread-safe. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 18:08:27 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
false) type stringSetFlag map[string]bool func (ss *stringSetFlag) String() string { var items []string for item := range *ss { items = append(items, item) } sort.Strings(items) return strings.Join(items, ",") } func (ss *stringSetFlag) Set(s string) error { m := make(map[string]bool) // clobber previous value if s != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 4.5K bytes - Viewed (0) -
src/runtime/plugin.go
// license that can be found in the LICENSE file. package runtime import ( "internal/abi" "unsafe" ) //go:linkname plugin_lastmoduleinit plugin.lastmoduleinit func plugin_lastmoduleinit() (path string, syms map[string]any, initTasks []*initTask, errstr string) { var md *moduledata for pmd := firstmoduledata.next; pmd != nil; pmd = pmd.next { if pmd.bad { md = nil // we only want the last module continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/link/internal/dwtest/dwtest.go
dies []*dwarf.Entry idxByOffset map[dwarf.Offset]int kids map[int][]int parent map[int]int byname map[string][]int } // Populate the Examiner using the DIEs read from rdr. func (ex *Examiner) Populate(rdr *dwarf.Reader) error { ex.idxByOffset = make(map[dwarf.Offset]int) ex.kids = make(map[int][]int) ex.parent = make(map[int]int) ex.byname = make(map[string][]int) var nesting []int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 02 15:22:18 UTC 2024 - 5.4K bytes - Viewed (0) -
src/runtime/tracemap.go
// license that can be found in the LICENSE file. // Simple append-only thread-safe hash map for tracing. // Provides a mapping between variable-length data and a // unique ID. Subsequent puts of the same data will return // the same ID. The zero value is ready to use. // // Uses a region-based allocation scheme internally, and // reset clears the whole map. // // It avoids doing any high-level Go operations so it's safe
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:03:35 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/go/internal/load/godebug.go
// the last version before GODEBUGs were introduced. goVersion = p.Module.GoVersion if goVersion == "" { goVersion = "1.20" } } var m map[string]string for _, g := range modload.MainModules.Godebugs() { if m == nil { m = make(map[string]string) } m[g.Key] = g.Value } for _, list := range [][]build.Directive{p.Internal.Build.Directives, directives, testDirectives, xtestDirectives} {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 3.1K bytes - Viewed (0) -
src/cmd/trace/jsontrace.go
log.Printf("failed to find task with id %d", taskid) return } // Set the goroutine filtering options. goid := firstEv.Goroutine() opts.focusGoroutine = goid goroutines := make(map[trace.GoID]struct{}) for _, task := range opts.tasks { // Find only directly involved goroutines. for id := range task.Goroutines { goroutines[id] = struct{}{} } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 6.5K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter.go
} // Import imports a gc-generated package given its import path and srcDir, adds // the corresponding package object to the packages map, and returns the object. // The packages map must contain all packages already imported. func Import(fset *token.FileSet, packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error) { var rc io.ReadCloser var id string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.4K bytes - Viewed (0) -
src/go/ast/print.go
// not cycles that are created via slices or maps containing the // same slice or map. Code for general data structures probably // should catch those as well. func (p *printer) print(x reflect.Value) { if !NotNilFilter("", x) { p.printf("nil") return } switch x.Kind() { case reflect.Interface: p.print(x.Elem()) case reflect.Map: p.printf("%s (len = %d) {", x.Type(), x.Len()) if x.Len() > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 5.9K bytes - Viewed (0) -
src/go/ast/commentmap.go
// Update replaces an old node in the comment map with the new node // and returns the new node. Comments that were associated with the // old node are associated with the new node. func (cmap CommentMap) Update(old, new Node) Node { if list := cmap[old]; len(list) > 0 { delete(cmap, old) cmap[new] = append(cmap[new], list...) } return new } // Filter returns a new comment map consisting of only those
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0)