Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dereference ¶
func Dereference[T any](p *T) T
Dereference - utility function to safely dereference a pointer to either its value or a zero value if nil.
func Pointer ¶
func Pointer[T any](v T) *T
Pointer - utility function to convert a literal to a pointer. The `&` operator should be used for non-literal types, but this function will also work. See https://stackoverflow.com/a/30716481 for details.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.