Remove exp slices requirement

This commit is contained in:
WeebDataHoarder
2025-04-06 01:59:47 +02:00
parent 617ec804bc
commit 105477c3ee
6 changed files with 53 additions and 4 deletions

5
utils/exp/go.mod Normal file
View File

@@ -0,0 +1,5 @@
module git.gammaspectra.live/git/go-away/utils/exp
go 1.22.0
toolchain go1.22.12

7
utils/exp/slices/func.go Normal file
View File

@@ -0,0 +1,7 @@
package slices
import "slices"
func EqualFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, eq func(E1, E2) bool) bool {
return slices.EqualFunc(s1, s2, eq)
}