Skip to content

Commit 25bfbcb

Browse files
committed
use golang.org/x/exp/constraints
constraints package has been moved to under exp. see: https://go-review.googlesource.com/c/exp/+/363434/
1 parent 982be48 commit 25bfbcb

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

constraint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package cache
22

3-
import "constraints"
3+
import "golang.org/x/exp/constraints"
44

55
// Number is a constraint that permits any numeric types.
66
type Number interface {

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/Code-Hex/go-generics-cache
22

33
go 1.18
4+
5+
require golang.org/x/exp v0.0.0-20220209042442-160e291fcf24

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
golang.org/x/exp v0.0.0-20220209042442-160e291fcf24 h1:OjlHYXIoGV9nlK1oNYHsodLh3sPNqXeSlunMPDiPyi4=
2+
golang.org/x/exp v0.0.0-20220209042442-160e291fcf24/go.mod h1:lRnflEfy7nRvpQCcpkwaSP1nkrSyjkyFNcqXKfSXLMc=

0 commit comments

Comments
 (0)