Documentation
¶
Overview ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deref ¶
func Deref[T any](v *T, defaultValue T) T
Deref safely dereferences a pointer. If pointer is nil, returns zero value, otherwise returns dereferenced value.
func NonZeroPtr ¶
func NonZeroPtr[T comparable](val T) *T
NonZeroPtr returns nil for zero value, otherwise pointer to value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.