- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 341 for Map (0.04 sec)
-
src/cmd/trace/jsontrace_test.go
// "blocked" argument is equal to blocked. func filterBlocked(blocked string) eventFilterFn { return func(e *format.Event, _ *format.Data) bool { m, ok := e.Arg.(map[string]any) if !ok { return false } return m["blocked"] == blocked } } // filterStackRootFunc returns an event filter that returns true if the function
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 7.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/sizes_test.go
func findStructType(t *testing.T, src string) *types2.Struct { return findStructTypeConfig(t, src, &types2.Config{}) } func findStructTypeConfig(t *testing.T, src string, conf *types2.Config) *types2.Struct { types := make(map[syntax.Expr]types2.TypeAndValue) mustTypecheck(src, nil, &types2.Info{Types: types}) for _, tv := range types { if ts, ok := tv.Type.(*types2.Struct); ok { return ts } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 21:00:48 UTC 2023 - 4.1K bytes - Viewed (0) -
src/internal/poll/fd_windows_test.go
FD *poll.FD Err error } var ( logMu sync.Mutex loggedFDs map[syscall.Handle]*loggedFD ) func logFD(net string, fd *poll.FD, err error) { logMu.Lock() defer logMu.Unlock() loggedFDs[fd.Sysfd] = &loggedFD{ Net: net, FD: fd, Err: err, } } func init() { loggedFDs = make(map[syscall.Handle]*loggedFD) *poll.LogInitFD = logFD poll.InitWSA() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 14 08:33:36 UTC 2024 - 4.3K bytes - Viewed (0) -
src/cmd/link/internal/loadxcoff/ldxcoff.go
return sym.Sxxx, fmt.Sprintf("getSymbolType for Storage class 0x%x and Storage Map 0x%x not implemented", s.StorageClass, s.AuxCSect.StorageMappingClass) // Program Code case xcoff.XMC_PR: if sectType == xcoff.STYP_TEXT { return sym.STEXT, "" } return sym.Sxxx, fmt.Sprintf("unrecognised Section Type 0x%x for Storage Class 0x%x with Storage Map XMC_PR", sectType, s.StorageClass) // Read/Write Data
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 6.2K 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) -
doc/next/6-stdlib/3-iter.md
- [Values](/pkg/maps#Values) returns an iterator over values in m. - [Insert](/pkg/maps#Insert) adds the key-value pairs from seq to m.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:13 UTC 2024 - 1.4K bytes - Viewed (0) -
test/fixedbugs/issue15091.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package sample type Html struct { headerIDs map[string]int } // We don't want to see: // internal error: (*Html).xyzzy autotmp_3 (type *int) recorded as live on entry, p.Pc=0 // or (now, with the error caught earlier)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 989 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/free.go
// NOTE: Adapted from go/types/infer.go. If it is later exported, factor. type Free struct { seen map[types.Type]bool } // Has reports whether the specified type has a free type parameter. func (w *Free) Has(typ types.Type) (res bool) { // detect cycles if x, ok := w.seen[typ]; ok { return x } if w.seen == nil { w.seen = make(map[types.Type]bool) } w.seen[typ] = false defer func() { w.seen[typ] = res }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.7K bytes - Viewed (0)