internal

package
v1.1.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

func FixSplit(myStrings []string) []string

FixSplit will fix the bullshit bug in the Split function (which is not ignoring the spaces between strings).

func FixSplitWhite

func FixSplitWhite(myStrings []string) []string

FixSplit will fix the bullshit bug in the Split function (which is not ignoring the spaces between strings).

func SplitN

func SplitN(s string, n int, separator ...string) []string

func SplitSlice

func SplitSlice(s string, separator []string) []string

func SplitSliceN

func SplitSliceN(s string, separator []string, n int) []string

func SplitSliceNWhite

func SplitSliceNWhite(s string, separator []string, n int) []string

func SplitWhite

func SplitWhite(s string, separator ...string) []string

SplitWhite splits the string with the given separator and will remove the white spaces slices from the results

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL