Skip to content

Commit

Permalink
fix: use golang.org/x/exp/constraints (#12)
Browse files Browse the repository at this point in the history
The constraints builtin has been removed as per
[this issue](golang/go#50792).
  • Loading branch information
mtoohey31 committed Mar 16, 2022
1 parent dd9f94b commit d21f3f5
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/gen/tuple.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tuple

import (
"fmt"
"constraints"
"golang.org/x/exp/constraints"
)

{{/* $typeRef can be used when the context of dot changes. */}}
Expand Down
2 changes: 1 addition & 1 deletion tuple1.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T1 is a tuple type holding 1 generic values.
Expand Down
2 changes: 1 addition & 1 deletion tuple2.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T2 is a tuple type holding 2 generic values.
Expand Down
2 changes: 1 addition & 1 deletion tuple3.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T3 is a tuple type holding 3 generic values.
Expand Down
2 changes: 1 addition & 1 deletion tuple4.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T4 is a tuple type holding 4 generic values.
Expand Down
2 changes: 1 addition & 1 deletion tuple5.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T5 is a tuple type holding 5 generic values.
Expand Down
2 changes: 1 addition & 1 deletion tuple6.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T6 is a tuple type holding 6 generic values.
Expand Down
2 changes: 1 addition & 1 deletion tuple7.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T7 is a tuple type holding 7 generic values.
Expand Down
2 changes: 1 addition & 1 deletion tuple8.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T8 is a tuple type holding 8 generic values.
Expand Down
2 changes: 1 addition & 1 deletion tuple9.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tuple

import (
"constraints"
"fmt"
"golang.org/x/exp/constraints"
)

// T9 is a tuple type holding 9 generic values.
Expand Down

0 comments on commit d21f3f5

Please sign in to comment.