package
0.20.2
Repository: https://github.com/metal-stack/metal-lib.git
Documentation: pkg.go.dev

# Functions

FirstOrZero returns the first value of a slice or the zero slice if slize is empty.
IsZero returns true if the passed value equals its zero value.
Pointer returns the pointer of the given value.
PointerOrDefault returns the pointer of the given value.
PointerOrNil returns the pointer of the given value or nil if given value is equal to zero value.
SafeDeref returns the value from the passed pointer or zero value for a nil pointer.
SafeDerefOrDefault returns the value from the passed pointer or the default value for a nil pointer or zero value.
FirstOrZero returns a slice that wraps the given value.