Compare commits

..

No commits in common. "master" and "v1.0.1" have entirely different histories.

4 changed files with 2 additions and 20 deletions

2
add.go
View file

@ -1,5 +1,7 @@
// Пакет, складывающий два числа
package testmod package testmod
// Функция, складывающая два числа
func Add(a, b int) int { func Add(a, b int) int {
return a + b return a + b
} }

View file

@ -1,13 +0,0 @@
// Пакет, складывающий два числа
package testmod
import "golang.org/x/exp/constraints"
type Number interface {
constraints.Integer | constraints.Float
}
// Функция, складывающая два числа
func Add[T Number](a T, b T) T {
return a + b
}

View file

@ -1,5 +0,0 @@
module git.catgirls.asia/B4D_US3R/testmod/v2
go 1.23.1
require golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6

View file

@ -1,2 +0,0 @@
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=