package
0.0.0-20241005173814-114fa825bbdc
Repository: https://github.com/mandelsoft/goutils.git
Documentation: pkg.go.dev
# Functions
AppendUnique appends elements to a slice, if they are not net contained.
AppendUniqueFunc returns appends additional elements, if they are considered by the given function not to be yet present.
AsAny converts any slice to an interface slice.
AsSlice provides a slice for a given list of elements.
Convert converts a slice to a slice with a more general element type.
ConvertPointer converts a slice of pointers to an interface slice avoiding typed nil interfaces.
ConvertWith converts the element type of a slice using a converter function.
CopyAppend returns a new slice containing the additional elements appended to to the original slice.
CopyAppendUnique returns a new slice with additional elements appended, if they are not net contained.
CopyAppendUniqueFunc returns a new slice with additional elements appended, if they are considered by the given function not to be yet present.
Filter filters a slice by a matcher.Matcher.
FilterType filters elements of a dedicated super type from a list of specialized types.
InitialSliceFor provides a new initial slice with length and capacity taken from the given one.
InitialSliceWithTypeFor is like InitialSliceFor, but provides a slice of the explicitly given type TS instead of the one from the given slice S.
No description provided by the author
No description provided by the author
# Type aliases
Slice is a slice of an arbitrary type.