Documentation
¶
Index ¶
- func Contains(src string, inSlice []string) bool
- func ContainsAnySubstring(s string, subStrings []string) bool
- func DeDup(keys []string) []string
- func DeDupBig(keys []string) (result []string)
- func HasCommonElement(a, b []string) bool
- func HasPrefixSlice(prefix string, slice []string) bool
- func HasSuffixSlice(suffix string, slice []string) bool
- func SliceToString(s []any) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAnySubstring ¶
ContainsAnySubstring checks if string contains any of provided substring
func DeDup ¶
DeDup remove duplicates from slice. optimized for performance, good for short slices only!
func DeDupBig ¶
DeDupBig remove duplicates from slice. Should be used instead of DeDup for large slices
func HasCommonElement ¶
HasCommonElement checks if any element of the second slice is in the first slice
func HasPrefixSlice ¶ added in v1.1.0
HasPrefixSlice checks if any string in the slice starts with the given prefix
func HasSuffixSlice ¶ added in v1.1.0
HasSuffixSlice checks if any string in the slice ends with the given suffix
func SliceToString ¶
SliceToString converts slice of any to slice of string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.