- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 638 for Map (0.3 sec)
-
src/go/ast/commentmap_test.go
} } // verify that no comments got lost if n := len(cmap.Comments()); n != len(f.Comments) { t.Errorf("got %d comment groups in map; want %d", n, len(f.Comments)) } // support code to update test: // set genMap to true to generate res map const genMap = false if genMap { out := make([]string, 0, len(cmap)) for n, list := range cmap {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:35:30 UTC 2022 - 3.9K bytes - Viewed (0) -
test/typeparam/mdempsky/17.go
for v = range chanOf(zero[V]()) { } return } func RangeMapAny[K comparable, V any]() (k, v any) { for k, v = range map[K]V{zero[K](): zero[V]()} { } return } func RangeMapIface[K interface { iface comparable }, V iface]() (k, v iface) { for k, v = range map[K]V{zero[K](): zero[V]()} { } return } func RangeSliceAny[V any]() (k, v any) { for k, v = range []V{zero[V]()} { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 10 21:35:49 UTC 2022 - 2.1K bytes - Viewed (0) -
src/net/http/header_test.go
"Expires": {"-1"}, "Content-Length": {"0"}, "Content-Encoding": {"gzip"}, }, map[string]bool{"Content-Length": true}, "Content-Encoding: gzip\r\nExpires: -1\r\n", }, { Header{ "Expires": {"-1"}, "Content-Length": {"0", "1", "2"}, "Content-Encoding": {"gzip"}, }, map[string]bool{"Content-Length": true}, "Content-Encoding: gzip\r\nExpires: -1\r\n", }, { Header{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:07:32 UTC 2022 - 6.1K bytes - Viewed (0) -
src/mime/type.go
"sync" ) var ( mimeTypes sync.Map // map[string]string; ".Z" => "application/x-compress" mimeTypesLower sync.Map // map[string]string; ".z" => "application/x-compress" // extensions maps from MIME type to list of lowercase file // extensions: "image/jpeg" => [".jpg", ".jpeg"] extensionsMu sync.Mutex // Guards stores (but not loads) on extensions. extensions sync.Map // map[string][]string; slice values are append-only. )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/internal/obj/line_test.go
package obj import ( "cmd/internal/src" "fmt" "testing" ) func TestGetFileSymbolAndLine(t *testing.T) { ctxt := new(Link) ctxt.hash = make(map[string]*LSym) ctxt.statichash = make(map[string]*LSym) afile := src.NewFileBase("a.go", "a.go") bfile := src.NewFileBase("b.go", "/foo/bar/b.go") lfile := src.NewLinePragmaBase(src.MakePos(afile, 8, 1), "linedir", "linedir", 100, 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 1.2K bytes - Viewed (0) -
src/go/types/objset.go
// object name. package types // An objset is a set of objects identified by their unique id. // The zero value for objset is a ready-to-use empty objset. type objset map[string]Object // initialized lazily // insert attempts to insert an object obj into objset s. // If s already contains an alternative object alt with // the same name, insert leaves s unchanged and returns alt.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1K bytes - Viewed (0) -
src/internal/trace/base.go
type evTable struct { freq frequency strings dataTable[stringID, string] stacks dataTable[stackID, stack] pcs map[uint64]frame // extraStrings are strings that get generated during // parsing but haven't come directly from the trace, so // they don't appear in strings. extraStrings []string extraStringIDs map[string]extraStringID nextExtra extraStringID // expData contains extra unparsed data that is accessible
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 6.8K bytes - Viewed (0) -
src/go/ast/resolve.go
return false } // An Importer resolves import paths to package Objects. // The imports map records the packages already imported, // indexed by package id (canonical import path). // An Importer must determine the canonical import path and // check the map to see if it is already present in the imports map. // If so, the Importer can return the map entry. Otherwise, the // Importer should load the package data for the given path into
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 5.4K bytes - Viewed (0) -
src/internal/fmtsort/sort.go
// that are valid map keys. package fmtsort import ( "cmp" "reflect" "slices" ) // Note: Throughout this package we avoid calling reflect.Value.Interface as // it is not always legal to do so and it's easier to avoid the issue than to face it. // SortedMap is a slice of KeyValue pairs that simplifies sorting // and iterating over map entries. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
test/codegen/mapaccess.go
m[k]-- } func mapCompoundAssignmentString() { m := make(map[string]string, 0) var k string = "key" // 386:-".*mapaccess" // amd64:-".*mapaccess" // arm:-".*mapaccess" // arm64:-".*mapaccess" m[k] += "value" } var sinkAppend bool func mapAppendAssignmentInt8() { m := make(map[int8][]int8, 0) var k int8 = 0 // 386:-".*mapaccess" // amd64:-".*mapaccess"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 18 17:36:38 UTC 2022 - 9.1K bytes - Viewed (0)