- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 523 for Map (0.08 sec)
-
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/hash/maphash/maphash_test.go
"hash" "testing" ) func TestUnseededHash(t *testing.T) { m := map[uint64]struct{}{} for i := 0; i < 1000; i++ { h := new(Hash) m[h.Sum64()] = struct{}{} } if len(m) < 900 { t.Errorf("empty hash not sufficiently random: got %d, want 1000", len(m)) } } func TestSeededHash(t *testing.T) { s := MakeSeed() m := map[uint64]struct{}{} for i := 0; i < 1000; i++ { h := new(Hash) h.SetSeed(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 5.2K 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) -
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) -
src/testing/fstest/mapfs.go
// // File system operations read directly from the map, // so that the file system can be changed by editing the map as needed. // An implication is that file system operations must not run concurrently // with changes to the map, which would be a race. // Another implication is that opening or reading a directory requires // iterating over the entire map, so a MapFS should typically be used with not more
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.1K bytes - Viewed (0) -
test/fixedbugs/issue66096.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 352 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go
var kvFuncs = map[string]map[string]int{ "": map[string]int{ "Debug": 1, "Info": 1, "Warn": 1, "Error": 1, "DebugContext": 2, "InfoContext": 2, "WarnContext": 2, "ErrorContext": 2, "Log": 3, "Group": 1, }, "Logger": map[string]int{ "Debug": 1, "Info": 1,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 7.2K bytes - Viewed (0) -
test/fixedbugs/issue47068.dir/a.go
// license that can be found in the LICENSE file. package a func A() { var m map[int]int = map[int]int{ 0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0, 10: 0, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0, 16: 0, 17: 0, 18: 0, 19: 0, 20: 0, 21: 0, 22: 0, 23: 0, 24: 0, 25: 0, 26: 0, 27: 0, 28: 0, 29: 0} if len(m) != 30 { panic("unexpected map length") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 09 15:34:31 UTC 2023 - 479 bytes - Viewed (0) -
src/cmd/compile/internal/noder/posmap.go
package noder import ( "cmd/compile/internal/base" "cmd/compile/internal/syntax" "cmd/internal/src" ) // A posMap handles mapping from syntax.Pos to src.XPos. type posMap struct { bases map[*syntax.PosBase]*src.PosBase cache struct { last *syntax.PosBase base *src.PosBase } } type poser interface{ Pos() syntax.Pos } type ender interface{ End() syntax.Pos }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 27 03:43:35 UTC 2023 - 1.8K bytes - Viewed (0)