package
0.6.41
Repository: https://github.com/effective-security/x.git
Documentation: pkg.go.dev

# Functions

BoolSlicesEqual returns true only if the contents of the 2 slices are the same.
ByteSlicesEqual returns true only if the contents of the 2 slices are the same.
CloneStrings will return an independnt copy of the src slice, it preserves the distinction between a nil value and an empty slice.
Contains returns true if val is in arr, and false otherwise.
ContainsString returns true if the items slice contains a value equal to item Note that this can end up traversing the entire slice, and so is only really suitable for small slices, for larger data sets, consider using a map instead.
ContainsStringEqualFold returns true if the items slice contains a value equal to item ignoring case [i.e.
Deduplicate returns a deduplicated slice.
Float64SlicesEqual returns true only if the contents of the 2 slices are the same.
HashStrings returns the base64 SHA-1 of a series of string values.
Int64SlicesEqual returns true only if the contents of the 2 slices are the same.
MapStringSlice returns a new slices of strings that is the result of applies mapFn to each string in the input slice.
NvlString returns the first string from the supplied list that has len() > 0 or "" if all the strings are empty.
Prefixed returns a new slice of strings with each input item prefixed by the supplied prefix e.g.
Quoted returns a new slice of strings where each input stream has been wrapped in quotes.
Replace replaces all occurrences of old with new in slice.
No description provided by the author
StringContainsOneOf returns true if one of items slice is a substring of specified value.
StringSlicesEqual returns true only if the contents of the 2 slices are the same.
StringStartsWithOneOf returns true if one of items slice is a prefix of specified value.
StringUpto returns the beginning of the string up to `max`.
Suffixed returns a new slice of strings which each input item suffixed by the supplied suffix e.g.
Truncate returns a new slice containing the first maxLen elements of arr.
Uint64SlicesEqual returns true only if the contents of the 2 slices are the same.
UniqueStrings removes duplicates from the given list.

# Type aliases

Uint64s is a slice of uint64, that knows how to be sorted, using sort.Sort.