We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982be48 commit 25bfbcbCopy full SHA for 25bfbcb
constraint.go
@@ -1,6 +1,6 @@
1
package cache
2
3
-import "constraints"
+import "golang.org/x/exp/constraints"
4
5
// Number is a constraint that permits any numeric types.
6
type Number interface {
go.mod
@@ -1,3 +1,5 @@
module github.com/Code-Hex/go-generics-cache
go 1.18
+
+require golang.org/x/exp v0.0.0-20220209042442-160e291fcf24
go.sum
@@ -0,0 +1,2 @@
+golang.org/x/exp v0.0.0-20220209042442-160e291fcf24 h1:OjlHYXIoGV9nlK1oNYHsodLh3sPNqXeSlunMPDiPyi4=
+golang.org/x/exp v0.0.0-20220209042442-160e291fcf24/go.mod h1:lRnflEfy7nRvpQCcpkwaSP1nkrSyjkyFNcqXKfSXLMc=
0 commit comments