- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,420 for generics (0.28 sec)
-
src/go/printer/testdata/generics.input
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package generics func _[A, B any](a A, b B) int {} func _[T any](x, y T) T type T[P any] struct{} type T[P1, P2, P3 any] struct{} type T[P C] struct{} type T[P1, P2, P3 C] struct{} type T[P C[P]] struct{} type T[P1, P2, P3 C[P1, P2, P3]] struct{} func f[P any](x P)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 06 16:18:34 UTC 2022 - 2.6K bytes - Viewed (0) -
src/go/printer/testdata/generics.golden
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package generics func _[A, B any](a A, b B) int {} func _[T any](x, y T) T type T[P any] struct{} type T[P1, P2, P3 any] struct{} type T[P C] struct{} type T[P1, P2, P3 C] struct{} type T[P C[P]] struct{} type T[P1, P2, P3 C[P1, P2, P3]] struct{} func f[P any](x P)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 06 16:18:34 UTC 2022 - 2.6K bytes - Viewed (0) -
src/go/doc/testdata/generics.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package generics contains the new syntax supporting generic programming in // Go. package generics // Variables with an instantiated type should be shown. var X Type[int] // Parameterized types should be shown. type Type[P any] struct { Field P }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 2.1K bytes - Viewed (0) -
src/go/internal/gcimporter/testdata/generics.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file is used to generate an object file which // serves as test file for gcimporter_test.go. package generics type Any any var x any type T[A, B any] struct { Left A Right B } var X T[int, string] = T[int, string]{1, "hi"} func ToInt[P interface{ ~int }](p P) int { return int(p) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 01 19:00:50 UTC 2021 - 572 bytes - Viewed (0) -
src/go/doc/testdata/generics.1.golden
// Package generics contains the new syntax supporting generic ... PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.6K bytes - Viewed (0) -
src/go/doc/testdata/generics.0.golden
// Package generics contains the new syntax supporting generic ... PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.8K bytes - Viewed (0) -
src/go/doc/testdata/generics.2.golden
// Package generics contains the new syntax supporting generic ... PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_sum_issue56222.txt
go mod download -json example.com/generics stdout '"GoModSum":' go list -f '{{if eq .ImportPath "example.com/generics"}}{{.Module.GoVersion}}{{end}}' -deps -test example.com/m2/q stdout 1.18 # At go 1.20 or earlier, 'go mod tidy' should preserve the historical go.sum
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 12 13:58:58 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/go/testdata/mod/example.com_depends_on_generics_v1.0.0.txt
example.com/depends/on/generics v1.0.0 written by hand -- .mod -- module example.com/depends/on/generics go 1.18 require example.com/generics v1.0.0 -- .info -- {"Version":"v1.0.0"} -- go.mod -- module example.com/depends/on/generics go 1.18 require example.com/generics v1.0.0 -- main.go -- package main import "example.com/generics"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 20:37:36 UTC 2022 - 370 bytes - Viewed (0) -
src/cmd/go/testdata/mod/example.com_generics_v1.0.0.txt
example.com/generics v1.0.0 written by hand -- .mod -- module example.com/generics go 1.18 -- .info -- {"Version":"v1.0.0"} -- go.mod -- module example.com/generics go 1.18 -- generics.go -- package generics type Int interface { ~int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 20:37:36 UTC 2022 - 255 bytes - Viewed (0)