Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NonDefault ¶ added in v0.8.0
func NonDefault[T comparable](val, def T) *T
NonDefault returns a pointer to the first parameter, unless it is equal to the second parameter.
func NonZero ¶ added in v0.8.0
func NonZero[T comparable](val T) *T
NonZero returns a pointer to the given comparable value, unless the value is the type's zero value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.