Documentation
¶
Overview ¶
Package ptr contains helper types and functions for working with optional types as pointers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValueOrDefault ¶
ValueOrDefault returns the value or the given default if not set.
func ValueOrZero ¶
ValueOrZero returns the value or the zero value if not set.
Types ¶
Click to show internal directories.
Click to hide internal directories.