- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 642 for Map (0.03 sec)
-
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) -
test/typeparam/orderedmapsimp.dir/a.go
// > 0 if the first is greater. func New[K, V any](compare func(K, K) int) *Map[K, V] { return &Map[K, V]{compare: compare} } // NewOrdered returns a new map whose key is an ordered type. // This is like New, but does not require providing a compare function. // The map compare function uses the obvious key ordering. func NewOrdered[K Ordered, V any]() *Map[K, V] { return New[K, V](func(k1, k2 K) int { switch { case k1 < k2:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 5.5K 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/syntax/testdata/interface.go
type _ interface { int []byte [10]int struct{} *int func() interface{} map[string]int chan T chan<- T <-chan T T[int] } type _ interface { int | string []byte | string [10]int | string struct{} | string *int | string func() | string interface{} | string map[string]int | string chan T | string chan<- T | string <-chan T | string T[int] | string }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 30 18:02:18 UTC 2022 - 1.1K bytes - Viewed (0) -
src/internal/types/testdata/check/builtins1.go
// delete type M0 interface{ int } type M1 interface{ map[string]int } type M2 interface { map[string]int | map[string]float64 } type M3 interface{ map[string]int | map[rune]int } type M4[K comparable, V any] interface{ map[K]V | map[rune]V } func _[T any](m T) { delete(m /* ERROR "not a map" */, "foo") } func _[T M0](m T) { delete(m /* ERROR "not a map" */, "foo") } func _[T M1](m T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 21:16:29 UTC 2023 - 6.8K bytes - Viewed (0) -
src/internal/types/testdata/check/cycles0.go
i0 /* ERROR "invalid recursive type: i0 refers to itself" */ interface{ i0 } // maps m0 map[m0 /* ERROR "invalid map key" */ ]m0 // channels c0 chan c0 ) } // test cases for issue 6667 type A [10]map[A /* ERROR "invalid map key" */ ]bool type S struct { m map[S /* ERROR "invalid map key" */ ]bool } // test cases for issue 7236
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/testdata/b53456.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 11 21:21:49 UTC 2022 - 215 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go
) // importMap computes the import map for a package by traversing the // entire exported API each of its imports. // // This is a workaround for the fact that we cannot access the map used // internally by the types.Importer returned by go/importer. The entries // in this map are the packages and objects that may be relevant to the // current analysis unit. // // Packages in the map that are only indirectly imported may be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
test/fixedbugs/issue52846.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 52846: gofrontend crashed with alias as map key type package p type S struct { F string } type A = S
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 22 23:27:17 UTC 2022 - 315 bytes - Viewed (0) -
src/crypto/internal/hpke/hpke_test.go
} func parseVectorSetup(vector string) map[string]string { vals := map[string]string{} for _, l := range strings.Split(vector, "\n") { fields := strings.Split(l, ": ") vals[fields[0]] = fields[1] } return vals } func parseVectorEncryptions(vector string) []map[string]string { vals := []map[string]string{} for _, section := range strings.Split(vector, "\n\n") { e := map[string]string{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:33:33 UTC 2024 - 4.7K bytes - Viewed (0)