Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatPtr ¶
func FormatPtr[T comparable](p *T) string
FormatPtr will format the value pointed by p using "%v". It will format it as "<nil>" if p is nil.
func ToValue ¶
func ToValue[T comparable](p *T) (v T)
ToValue returns the value referenced by p. Returns a zero value if p is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.