Documentation ¶
Overview ¶
Package strslice provides a few helper functions for dealing with []string.
Index ¶
- func Common(a, b []string) []string
- func Contains(list []string, a string) bool
- func ContainsCaseDiacriticsInsensitive(list []string, a string) bool
- func ContainsCaseInsensitive(list []string, a string) bool
- func Equal(a, b []string) bool
- func EqualCaseInsensitive(a, b []string) bool
- func HasDuplicates(options []string) bool
- func Remove(s []string, r string) []string
- func RemoveCaseDiacriticsInsensitive(s []string, r string) []string
- func RemoveCaseInsensitive(s []string, r string) []string
- func RemoveDuplicates(options *[]string, otherStringsToClean ...string)
- func RemoveDuplicatesCaseDiacriticsInsensitive(options *[]string, otherStringsToClean ...string)
- func RemoveDuplicatesCaseInsensitive(options *[]string, otherStringsToClean ...string)
- func ToIntSlice(in []string) ([]int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsCaseDiacriticsInsensitive ¶ added in v0.37.0
ContainsCaseDiacriticsInsensitive checks if a string is in a []string, regardless of case or diacritics.
func ContainsCaseInsensitive ¶
ContainsCaseInsensitive checks if a string is in a []string, regardless of case.
func EqualCaseInsensitive ¶ added in v0.26.0
Equal tells whether a and b contain the same elements, regardless of case.
func HasDuplicates ¶ added in v0.26.0
HasDuplicates in []string.
func RemoveCaseDiacriticsInsensitive ¶ added in v0.37.0
RemoveCaseDiacriticsInsensitive a particular string.
func RemoveCaseInsensitive ¶ added in v0.22.0
RemoveCaseInsensitive a particular string.
func RemoveDuplicates ¶
RemoveDuplicates in []string.
func RemoveDuplicatesCaseDiacriticsInsensitive ¶ added in v0.35.0
RemoveDuplicatesCaseDiacriticsInsensitive in []string.
func RemoveDuplicatesCaseInsensitive ¶ added in v0.29.0
RemoveDuplicatesCaseInsensitive in []string.
func ToIntSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.