Documentation ¶
Index ¶
- Constants
- func AppendUnique[T comparable](slice []T, target ...T) []T
- func Contains[T comparable](slice []T, target T) bool
- func FixSplit(myStrings []string) []string
- func FixSplitWhite(myStrings []string) []string
- func SplitN(s string, n int, separator ...string) []string
- func SplitSlice(s string, separator []string) []string
- func SplitSliceN(s string, separator []string, n int) []string
- func SplitSliceNWhite(s string, separator []string, n int) []string
- func SplitWhite(s string, separator ...string) []string
Constants ¶
View Source
const (
OrRegexp = "|"
)
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶
func AppendUnique[T comparable](slice []T, target ...T) []T
func Contains ¶
func Contains[T comparable](slice []T, target T) bool
func FixSplit ¶
FixSplit will fix the bullshit bug in the Split function (which is not ignoring the spaces between strings).
func FixSplitWhite ¶
FixSplit will fix the bullshit bug in the Split function (which is not ignoring the spaces between strings).
func SplitSlice ¶
func SplitWhite ¶
SplitWhite splits the string with the given separator and will remove the white spaces slices from the results
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.