Skip to content

Commit ce9ce28

Browse files
committed
changes made
1 parent b64166a commit ce9ce28

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

v2/ExModule.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/obi2na/exModuleGoReleaser/v2
2+
3+
go 1.24.0
4+
5+
require golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6

v2/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-20250506013437-ce4c2cf36ca6 h1:y5zboxd6LQAqYIhHnB48p0ByQ/GnQx2BE33L8BOHQkI=
2+
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6/go.mod h1:U6Lno4MTRCDY+Ba7aCcauB9T60gsv5s4ralQzP72ZoQ=

0 commit comments

Comments
 (0)