Skip to content

Commit

Permalink
use golang.org/x/exp/constraints
Browse files Browse the repository at this point in the history
constraints package has been moved to under exp.
see: https://go-review.googlesource.com/c/exp/+/363434/
  • Loading branch information
Code-Hex committed Feb 11, 2022
1 parent 982be48 commit 25bfbcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion constraint.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cache

import "constraints"
import "golang.org/x/exp/constraints"

// Number is a constraint that permits any numeric types.
type Number interface {
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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 comments on commit 25bfbcb

Please sign in to comment.