Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPointer ¶
ExtractPointer returns the underlying value by the given interface type
func UnwarpOr ¶
func UnwarpOr[T any](p *T, fallback T) T
UnwarpOr returns the value from the pointer or fallback if the pointer is nil.
func UnwarpOrDefault ¶
func UnwarpOrDefault[T any](p *T) T
UnwarpOrDefault returns the value from the pointer or the default value if the pointer is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.