- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 546 for Map (0.09 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/validate.go
func Validate(analyzers []*Analyzer) error { // Map each fact type to its sole generating analyzer. factTypes := make(map[reflect.Type]*Analyzer) // Traverse the Requires graph, depth first. const ( white = iota grey black finished ) color := make(map[*Analyzer]uint8) var visit func(a *Analyzer) error visit = func(a *Analyzer) error { if a == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 3.1K bytes - Viewed (0) -
test/fixedbugs/issue62203.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:10:03 UTC 2023 - 688 bytes - Viewed (0) -
src/go/ast/print_test.go
{nil, "0 nil"}, {true, "0 true"}, {42, "0 42"}, {3.14, "0 3.14"}, {1 + 2.718i, "0 (1+2.718i)"}, {"foobar", "0 \"foobar\""}, // maps {map[Expr]string{}, `0 map[ast.Expr]string (len = 0) {}`}, {map[string]int{"a": 1}, `0 map[string]int (len = 1) { 1 . "a": 1 2 }`}, // pointers {new(int), "0 *0"}, // arrays {[0]int{}, `0 [0]int {}`}, {[3]int{1, 2, 3},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:35:30 UTC 2022 - 1.8K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/sync/61696.md
The [Map.Clear] method deletes all the entries, resulting in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 17:07:25 UTC 2024 - 105 bytes - Viewed (0) -
test/clear.go
clear([]int{}) } func checkClearMap() { m1 := make(map[int]int) m1[0] = 0 m1[1] = 1 clear(m1) if len(m1) != 0 { panic("m1 is not cleared") } // map contains NaN keys is also cleared. m2 := make(map[float64]int) m2[math.NaN()] = 1 m2[math.NaN()] = 1 clear(m2) if len(m2) != 0 { panic("m2 is not cleared") } clear(map[int]int{}) } func main() { checkClearSlice()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 19:43:07 UTC 2023 - 743 bytes - Viewed (0) -
src/cmd/internal/obj/x86/obj6_test.go
marks []int marker_to_input map[int][]string marker_to_expected map[int][]string marker_to_output map[int][]string } const marker_start = 1234 func parseTestData(t *testing.T) *ParsedTestData { r := &ParsedTestData{} scanner := bufio.NewScanner(strings.NewReader(testdata)) r.marker_to_input = make(map[int][]string) r.marker_to_expected = make(map[int][]string) marker := marker_start
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:21:30 UTC 2022 - 4.5K bytes - Viewed (0) -
src/debug/dwarf/open.go
// New sections added in DWARF 5. addr []byte lineStr []byte strOffsets []byte rngLists []byte // parsed data abbrevCache map[uint64]abbrevTable bigEndian bool order binary.ByteOrder typeCache map[Offset]Type typeSigs map[uint64]*typeUnit unit []unit } var errSegmentSelector = errors.New("non-zero segment_selector size not supported")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 4.1K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue47127.go
// license that can be found in the LICENSE file. // Embedding of stand-alone type parameters is not permitted. package p type ( _[P any] interface{ *P | []P | chan P | map[string]P } _[P any] interface{ P /* ERROR "term cannot be a type parameter" */ } _[P any] interface{ ~P /* ERROR "type in term ~P cannot be a type parameter" */ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/reflectdata/helpers.go
// map type. func DeleteMapRType(pos src.XPos, n *ir.CallExpr) ir.Node { assertOp(n, ir.ODELETE) if hasRType(n, n.RType, "RType") { return n.RType } return mapRType(pos, n.Args[0].Type()) } // IndexMapRType asserts that n is a map index operation, and returns // an expression that yields the *runtime._type value representing the // map type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0) -
src/encoding/gob/type_test.go
} } func TestMapType(t *testing.T) { var m map[string]int mapStringInt := getTypeUnlocked("map", reflect.TypeOf(m)) var newm map[string]int newMapStringInt := getTypeUnlocked("map1", reflect.TypeOf(newm)) if mapStringInt != newMapStringInt { t.Errorf("second registration of map[string]int creates new type") } var b map[string]bool mapStringBool := getTypeUnlocked("", reflect.TypeOf(b))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:26:13 UTC 2023 - 6.1K bytes - Viewed (0)