- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 522 for Map (0.34 sec)
-
src/net/rpc/jsonrpc/server.go
// We assign uint64 sequence numbers to incoming requests // but save the original request ID in the pending map. // When rpc responds, we use the sequence number in // the response to find the original request ID. mutex sync.Mutex // protects seq, pending seq uint64 pending map[uint64]*json.RawMessage } // NewServerCodec returns a new [rpc.ServerCodec] using JSON-RPC on conn.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/trace/threadgen.go
logEventGenerator[trace.ThreadID] gStates map[trace.GoID]*gState[trace.ThreadID] threads map[trace.ThreadID]struct{} } func newThreadGenerator() *threadGenerator { tg := new(threadGenerator) rg := func(ev *trace.Event) trace.ThreadID { return ev.Thread() } tg.stackSampleGenerator.getResource = rg tg.logEventGenerator.getResource = rg tg.gStates = make(map[trace.GoID]*gState[trace.ThreadID])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 5.7K bytes - Viewed (0) -
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/maps/example_test.go
fmt.Println("m3 is:", m3) fmt.Println("m4 is:", m4) // Output: // m2 is: map[one:1 two:2] // m1 is: map[one:1 two:2] // m2 is: map[one:100 two:2] // m4 is: map[one:[1 2 3] two:[4 5 6]] // m3 is: map[one:[100 2 3] two:[4 5 6]] // m4 is: map[one:[100 2 3] two:[4 5 6]] } func ExampleDeleteFunc() { m := map[string]int{ "one": 1, "two": 2, "three": 3, "four": 4, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:21:56 UTC 2023 - 2.2K 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/reflect/export_test.go
func MapBucketOf(x, y Type) Type { return toType(bucketOf(x.common(), y.common())) } func CachedBucketOf(m Type) Type { t := m.(*rtype) if Kind(t.t.Kind_&abi.KindMask) != Map { panic("not map") } tt := (*mapType)(unsafe.Pointer(t)) return toType(tt.Bucket) } type EmbedWithUnexpMeth struct{} func (EmbedWithUnexpMeth) f() {} type pinUnexpMeth interface { f() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 3.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver_test.go
files = append(files, mustParse(src)) } // resolve and type-check package AST importer := new(resolveTestImporter) conf := Config{Importer: importer} uses := make(map[*syntax.Name]Object) defs := make(map[*syntax.Name]Object) _, err := conf.Check("testResolveIdents", files, &Info{Defs: defs, Uses: uses}) if err != nil { t.Fatal(err) } // check that all packages were imported
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 4.7K bytes - Viewed (0) -
src/plugin/plugin_dlopen.go
// This function can be called from the init function of a plugin. // Drop a placeholder in the map so subsequent opens can wait on it. p := &Plugin{ pluginpath: pluginpath, loaded: make(chan struct{}), } plugins[filepath] = p pluginsMu.Unlock() doInit(initTasks) // Fill out the value of each plugin symbol. updatedSyms := map[string]any{} for symName, sym := range syms { isFunc := symName[0] == '.'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 16:55:22 UTC 2023 - 3.9K bytes - Viewed (0)