mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-13 03:11:51 +02:00
Update dependencies (#197)
Go 1.20 -> 1.21 JS package-lock Nodejs Docker 18 -> 20 Alpine Docker 3.17 -> 3.19
This commit is contained in:
@ -1,14 +1,5 @@
|
||||
package utils
|
||||
|
||||
func SliceContains(slice []string, item string) bool {
|
||||
for _, s := range slice {
|
||||
if s == item {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func RemoveDuplicates[T string | int](sliceList []T) []T {
|
||||
allKeys := make(map[T]bool)
|
||||
list := []T{}
|
||||
|
Reference in New Issue
Block a user