initial commit (some event stuffs)

This commit is contained in:
2022-08-13 16:37:45 +02:00
commit e752b1bafd
17 changed files with 1169 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
package gentools
import "fmt"
func FmtSprintArray[T any](arr []T) []string {
res := make([]string, len(arr))
for i, e := range arr {
res[i] = fmt.Sprint(e)
}
return res
}
+5
View File
@@ -0,0 +1,5 @@
package gentools
func Ptr[T any](t T) *T {
return &t
}