We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b64166a commit ce9ce28Copy full SHA for ce9ce28
v2/ExModule.go
@@ -0,0 +1,13 @@
1
+package exModuleGoReleaser
2
+
3
+import (
4
+ "golang.org/x/exp/constraints"
5
+)
6
7
+func Add[T Number](a, b T) T {
8
+ return a + b
9
+}
10
11
+type Number interface {
12
+ constraints.Integer | constraints.Float
13
v2/go.mod
@@ -0,0 +1,5 @@
+module github.com/obi2na/exModuleGoReleaser/v2
+go 1.24.0
+require golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6
v2/go.sum
@@ -0,0 +1,2 @@
+golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 h1:y5zboxd6LQAqYIhHnB48p0ByQ/GnQx2BE33L8BOHQkI=
+golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6/go.mod h1:U6Lno4MTRCDY+Ba7aCcauB9T60gsv5s4ralQzP72ZoQ=
0 commit comments