Documentation ¶
Index ¶
- func Filter(values []string, filter func(string) bool) (ret []string)
- func Has(haystack []string, needle string) bool
- func HasI(haystack []string, needle string) bool
- func Merge(parts ...[]string) []string
- func TrimEmptyFilter(values []string, trim func(rune) bool) (ret []string)
- func TrimSpaceEmptyFilter(values []string) []string
- func Unique(i []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
Filter applies the provided filter function and removes all items from the slice for which the filter function returns true. This function uses append and might cause
func TrimEmptyFilter ¶
TrimEmptyFilter applies the strings.TrimFunc function and removes all empty strings
func TrimSpaceEmptyFilter ¶
TrimSpaceEmptyFilter applies the strings.TrimSpace function and removes all empty strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.