Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Coalesce ¶ added in v0.18.0
func Coalesce[T any](values ...*T) *T
Coalesce returns the first non-nil pointer in the list
func SetIfPresent ¶
func SetIfPresent[T any](target *T, value *T)
SetIfPresent sets target to value if value is not nil
Types ¶
type Number ¶ added in v0.10.2
type Number interface { constraints.Integer | constraints.Float }
Number is a constraint that permits any numerical type.
Click to show internal directories.
Click to hide internal directories.