# Functions
CloneMapNonNil is like maps.Clone except it can't return nil, it will return an empty map instead.
No description provided by the author
ErrorType returns a best effort guess at the most meaningful type name for the given error.
FilterSlice iterates over elements of a slice, returning a new slice of all elements predicate returns true for.
FoldSlice folds left a slice using given reducer function and initial value.
InterruptibleSleep is like time.Sleep but can be interrupted by a context.
InverseMap creates the inverse map, ie., for a key-value map, it builds the value-key map.
MapConcurrent concurrently maps a function over input and fails fast on error.
MapSlice given slice xs []T and f(T) S produces slice []S by applying f to every element of xs.
MaxTime returns the later of two given time.Time.
MinTime returns the earlier of two given time.Time.
NextAlignedTime returns the earliest time after `t` that is aligned to an integer multiple of `align` since the unix epoch.
No description provided by the author
Ptr returns a pointer to a copy of v.
RepeatSlice given slice and a number (n) produces a new slice containing original slice n times if n is non-positive will produce nil.
SliceHead returns the first n elements of s.
SliceTail returns the last n elements of s.
SortSlice sorts the given slice of an ordered type.
TruncateUTF8 truncates s to no more than n _bytes_, and returns a valid utf-8 string as long as the input is a valid utf-8 string.
WildCardStringToRegexps converts a given slices of string patterns to a slice of regular expressions matching wildcards (*) with any substring.
WildCardStringToRegexp converts a given string pattern to a regular expression matching wildcards (*) with any substring.