package
0.0.0-20241212132234-0076f9e1ccd7
Repository: https://github.com/basecomplextech/baselibrary.git
Documentation: pkg.go.dev

# Functions

Clear zeros the slice and returns it.
Insert inserts an item at an index.
LeftShift shifts the slice left by n, and returns the truncated slice.
Random returns a random item from the slice, panics if the slice is empty.
Remove removes the first occurrence of the item from the slice.
RemoveAt removes n items at an index, and truncates the slice.
Shuffle pseudo-randomizes the order of elements using rand.Shuffle.
SortLess sorts a slice.
Truncate clears and truncates the slice, returns nil if the slice is nil.