Documentation
¶
Index ¶
- Variables
- func As(slice []interface{}) (res []string, err error)
- func Contains(haystack []string, needle string) bool
- func ContainsAll(haystack []string, needles ...string) bool
- func ContainsAny(haystack []string, needles ...string) bool
- func Cut(slice []string, separator string) (left, right []string, found bool)
- func CutAny(val []string, seperators ...string) (left, right []string, found bool)
- func Equal(a []string, b []string) bool
- func Index(haystack []string, needle string) int
- func Interface(slice []string) (res []interface{}, err error)
- func Split(slice []string, separator string) (parts [][]string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInterfaceNotString = errors.New("encountered non-string interface")
)
Functions ¶
func ContainsAll ¶
Check if a []string slice contains ALL of the provided members
func ContainsAny ¶
Check if a []string slice contains ANY of the provided members
func Index ¶
Find the index where the needle appears. Returns -1 if the needle doesn't appear in the slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.