Documentation
¶
Overview ¶
Package ptr provides tiny generic helpers for working with pointers, so callers stop writing one-off "address of a literal" locals or nil-checking deref blocks. It is dependency-free.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deref ¶
func Deref[T any](p *T) T
Deref returns the value p points to, or the zero value of T when p is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.