Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Coalesce ¶ added in v0.6.1
func Coalesce[T any](values ...*T) T
Coalesce Returns first no-nil value or panic if none
func OrDefault ¶ added in v0.6.1
func OrDefault[T any](value *T, defaultValue T) T
OrDefault Return value if no nil of default value in the another case
func OrDefaultF ¶ added in v0.14.0
func OrDefaultF[T any](value *T, defaultValue func() T) T
OrDefaultF Return value if no nil of default value from function in the another case
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.