feat(prebuild): make prebuild available as an external package.

Usefull for downstream repo.
This commit is contained in:
Alexandre Pujol 2023-05-06 13:01:07 +01:00
parent 538da05696
commit 913ac3131c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
13 changed files with 304 additions and 214 deletions

View file

@ -7,7 +7,6 @@ package util
import (
"encoding/hex"
"regexp"
"sort"
)
var isHexa = regexp.MustCompile("^[0-9A-Fa-f]+$")
@ -35,10 +34,3 @@ func RemoveDuplicate[T comparable](inlist []T) []T {
}
return list
}
func InSlice(item string, slice []string) bool {
sort.Strings(slice)
i := sort.SearchStrings(slice, item)
return i < len(slice) && slice[i] == item
}