Skip to content

Commit d21f3f5

Browse files
authored
fix: use golang.org/x/exp/constraints (#12)
The constraints builtin has been removed as per [this issue](golang/go#50792).
1 parent dd9f94b commit d21f3f5

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

scripts/gen/tuple.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package tuple
22

33
import (
44
"fmt"
5-
"constraints"
5+
"golang.org/x/exp/constraints"
66
)
77

88
{{/* $typeRef can be used when the context of dot changes. */}}

tuple1.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T1 is a tuple type holding 1 generic values.

tuple2.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T2 is a tuple type holding 2 generic values.

tuple3.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T3 is a tuple type holding 3 generic values.

tuple4.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T4 is a tuple type holding 4 generic values.

tuple5.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T5 is a tuple type holding 5 generic values.

tuple6.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T6 is a tuple type holding 6 generic values.

tuple7.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T7 is a tuple type holding 7 generic values.

tuple8.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T8 is a tuple type holding 8 generic values.

tuple9.go

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

33
import (
4-
"constraints"
54
"fmt"
5+
"golang.org/x/exp/constraints"
66
)
77

88
// T9 is a tuple type holding 9 generic values.

0 commit comments

Comments
 (0)