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{} for _, item := range sliceList { if _, value := allKeys[item]; !value { allKeys[item] = true list = append(list, item) } } return list }