Documentation ¶
Index ¶
- func GetStringOrFallback(values ...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 SliceContains(list []string, target string, caseSensitive bool) bool
- func SliceContainsCaseInSensitive(list []string, target string) bool
- 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 GetStringOrFallback ¶
func RemoveEmpty ¶ added in v0.0.52
func ReplaceAll ¶ added in v0.0.53
func SliceContains ¶ added in v0.0.61
func SliceContainsCaseInSensitive ¶ added in v0.0.75
sliceContains reports whether the provided string is present in the given slice of strings.
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.