Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deref ¶
func Deref[E any](e *E, defaultValue E) E
Deref returns the value e points to if it's non-nil. Otherwise, it returns the defaultValue.
func DerefFunc ¶
func DerefFunc[E any](e *E, defaultFunc func() E) E
DerefFunc returns the value e points to if it's non-nil. Otherwise, it returns the result of calling defaultFunc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.