Documentation
¶
Index ¶
- func Contains(slice []string, s string) bool
- func ContainsIgnorecase(slice []string, s string) bool
- func FindIndex(slice []string, s string) (int, bool)
- func Insert(slice []string, idx int, val string) []string
- func Remove(slice []string, s string) []string
- func RemoveFrom(slice []string, s int) []string
- func ToSnakeCase(str string) string
- func Unique(t []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsIgnorecase ¶
ContainsIgnorecase checks if given string exists in the slice. Case insensitive.
func FindIndex ¶
FindIndex returns the first occurrence index of given string. Returns -1 if string was not found.
func RemoveFrom ¶ added in v0.2.3
RemoveFrom removes a string from given index
func ToSnakeCase ¶ added in v0.2.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.