Documentation ¶
Index ¶
- func ContainsString(val string, vals []string) bool
- func GetStringOrFallback(values []string, defaultValue string) string
- func RemoveEmpty(s []string) []string
- func Replace(s string, old string, news []interface{}, useQuote bool, n int) string
- func ReplaceAll(s, old string, news []interface{}, useQuote bool) string
- func SliceIntersection(s1 []string, s2 []string) []string
- func SliceUnique(s ...string) []string
- func Split(s, sep string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶ added in v0.0.55
func GetStringOrFallback ¶
func RemoveEmpty ¶ added in v0.0.52
func ReplaceAll ¶ added in v0.0.53
func SliceIntersection ¶ added in v0.0.29
func SliceUnique ¶ added in v0.0.29
func Split ¶ added in v0.0.60
Split slices s into all substrings separated by sep and returns a slice of the substrings between those separators.
If s does not contain sep and sep is not empty, Split returns a slice of length 0.
If sep is empty, Split splits after each UTF-8 sequence. If both s and sep are empty, Split returns an empty slice.
It is equivalent to SplitN with a count of -1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.