Documentation
¶
Overview ¶
Package pointer provides utilities for working with pointers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValueOrZero ¶ added in v0.1.0
func ValueOrZero[T any](v *T) T
ValueOrZero will return the value of the pointer or the zero value if the pointer is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.