Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶ added in v0.1.2
func Clone[T any](p *T) *T
Clone returns a shallow copy of the value behind p. Nil in, nil out.
func Deref ¶
func Deref[T any](v *T) T
Deref is the safe equivalent of * operator. It returns values under the pointer or zero value in case of nil.
func Equal ¶ added in v0.2.1
func Equal[T comparable](a, b *T) bool
Equal reports whether two pointers hold equal values. Two nils are equal; a nil never equals a non-nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.