Documentation ¶
Index ¶
- func Filter(values []string, filter func(string) bool) []string
- func Has(haystack []string, needle string) bool
- func HasI(haystack []string, needle string) bool
- func Merge(parts ...[]string) []string
- func Reverse(s []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. Deprecated: use slices.DeleteFunc instead (changes semantics: the original slice is modified)
func Has ¶
Has returns true if the needle is in the haystack (case-sensitive) Deprecated: use slices.Contains instead
func Reverse ¶ added in v0.0.167
Reverse reverses the order of a string slice Deprecated: use slices.Reverse instead (changes semantics)
func TrimEmptyFilter ¶
TrimEmptyFilter applies the strings.TrimFunc function and removes all empty strings Deprecated: use slices.DeleteFunc instead (changes semantics: the original slice is modified)
func TrimSpaceEmptyFilter ¶
TrimSpaceEmptyFilter applies the strings.TrimSpace function and removes all empty strings Deprecated: use slices.DeleteFunc with strings.TrimSpace instead (changes semantics: the original slice is modified)
Types ¶
This section is empty.