- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 343 for Map (0.14 sec)
-
src/go/types/exprstring_test.go
dup("[]int"), dup("*int"), dup("struct{x int}"), dup("func()"), dup("func(int, float32) string"), dup("interface{m()}"), dup("interface{m() string; n(x int)}"), dup("interface{~int}"), dup("map[string]int"), dup("chan E"), dup("<-chan E"), dup("chan<- E"), // new interfaces dup("interface{int}"), dup("interface{~int}"), // generic constraints
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 31 17:08:18 UTC 2023 - 2.5K bytes - Viewed (0) -
src/runtime/symtabinl_test.go
f := findfunc(pc1) if !f.valid() { t.Fatalf("failed to resolve tiuTest at PC %#x", pc1) } want := map[string]int{ "tiuInlined1:3 tiuTest:10": 0, "tiuInlined1:3 tiuInlined2:6 tiuTest:11": 0, "tiuInlined2:7 tiuTest:11": 0, "tiuTest:12": 0, } wantStart := map[string]int{ "tiuInlined1": 2, "tiuInlined2": 5, "tiuTest": 9, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 3K bytes - Viewed (0) -
src/net/http/clone.go
// //go:linkname cloneMultipartForm func cloneMultipartForm(f *multipart.Form) *multipart.Form { if f == nil { return nil } f2 := &multipart.Form{ Value: (map[string][]string)(Header(f.Value).Clone()), } if f.File != nil { m := make(map[string][]*multipart.FileHeader) for k, vv := range f.File { vv2 := make([]*multipart.FileHeader, len(vv)) for i, v := range vv { vv2[i] = cloneMultipartFileHeader(v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/deadcode.go
live[i] = true } return } // Record all the inline indexes we need var liveInlIdx map[int]bool pt := f.Config.ctxt.PosTable for _, b := range f.Blocks { for _, v := range b.Values { i := pt.Pos(v.Pos).Base().InliningIndex() if i < 0 { continue } if liveInlIdx == nil { liveInlIdx = map[int]bool{} } liveInlIdx[i] = true } i := pt.Pos(b.Pos).Base().InliningIndex()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 00:29:01 UTC 2023 - 9.2K bytes - Viewed (0) -
src/internal/trace/internal/testgen/go122/trace.go
// creating complex traces that are mostly or completely correct. func (t *Trace) Generation(gen uint64) *Generation { g := &Generation{ trace: t, gen: gen, strings: make(map[string]uint64), stacks: make(map[stack]uint64), } t.gens = append(t.gens, g) return g } // Generate creates a test file for the trace. func (t *Trace) Generate() []byte { // Trace file contents.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 9.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/numberlines.go
// -d=ssa/number_lines/debug for information about why particular values are marked as statements. func numberLines(f *Func) { po := f.Postorder() endlines := make(map[ID]src.XPos) ranges := make(map[int]lineRange) note := func(p src.XPos) { line := uint32(p.Line()) i := int(p.FileIndex()) lp, found := ranges[i] change := false if line < lp.first || !found { lp.first = line
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 21:26:13 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/internal/dwarf/putvarabbrevgen_test.go
var fset token.FileSet f, err := parser.ParseFile(&fset, "./dwarf.go", nil, parser.ParseComments) if err != nil { t.Fatal(err) } cm := ast.NewCommentMap(&fset, f, f.Comments) abbrevs := make(map[string]int) funcs := map[string]ast.Stmt{} for _, decl := range f.Decls { decl, ok := decl.(*ast.FuncDecl) if !ok || decl.Body == nil { continue } if decl.Name.Name == "putvar" || decl.Name.Name == "putAbstractVar" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 8.9K bytes - Viewed (0) -
src/runtime/covermeta.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 603 bytes - Viewed (0) -
src/net/http/mapping_test.go
entries = append(entries, entry[string, any]{c, nil}) } b.ResetTimer() for i := 0; i < b.N; i++ { findChildLinear(key, entries) } }) b.Run("rep=map", func(b *testing.B) { m := map[string]any{} for _, c := range list { m[c] = nil } var x any b.ResetTimer() for i := 0; i < b.N; i++ { x = m[key] } _ = x })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 17:47:07 UTC 2023 - 2.9K bytes - Viewed (0) -
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)