# Functions
BatchSlice splits a slice in batches.
ConcatSlices returns a new slice built by appending all values from the given slices in order.
FilterMap copies a map including only (k, v) pairs for which the predicate returns true.
FilterSlice makes a shallow copy of a slice including only elements for which the predicate returns true.
GetSortedMapKeys returns a slice built by appending all keys in the map and sorting them.
MapPtr returns a copy of the given map with each value passed through Ptr.
MapPtrZeroToNil returns a copy of the given map with each value passed through PtrZeroToNil.
MapValNilToDef returns a copy of the given map with each value passed through ValNilToDef.
MapValNilToZero returns a copy of the given map with each value passed through ValNilToZero.
Max returns the highest between v1 and v2.
MergeMaps returns a new map built by setting all key/value pairs from the given maps in order.
Min returns the lowest between v1 and v2.
PredicateIsZeroValue returns true if v is the zero-value of its type.
Ptr returns a pointer to the given value.
PtrIfTrue returns a pointer to the given value of cond is true, nil otherwise.
PtrZeroToNil returns a pointer to the given value if different from the zero-value, nil otherwise.
PtrZeroToNilIfTrue returns a pointer to the given value if different from the zero-value and cond is true, nil otherwise.
SafeSliceIndexDef indexes a slice, supports negative indexes (from end), and returns a default value instead of panic.
SafeSliceIndexPtr indexes a slice, supports negative indexes (from end), and returns pointer to value instead of panic.
SafeSliceIndexZero indexes a slice, supports negative indexes (from end), and returns a zero-value instead of panic.
ShallowCopyMap makes a shallow copy of a map.
ShallowCopySlice makes a shallow copy of a slice.
SlicePtr returns a copy of the given slice with each element passed through Ptr.
SlicePtrZeroToNil returns a copy of the given slice with each element passed through PtrZeroToNil.
SliceValNilToDef returns a copy of the given slice with each element passed through ValNilToDef.
SliceValNilToZero returns a copy of the given slice with each element passed through ValNilToZero.
TransformMapValues returns a new map built by passing all values through the given function, while the keys remain stable.
TransformSlice returns a new slice built by passing all elements through the given function.
TransformSprintf stringifies values using fmt.Sprintf("%v").
ValNilToDef returns the value of the given pointer if found, the given default value otherwise.
ValNilToZero returns the value of the given pointer if found, a zero-value of the same type otherwise.