Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func False ¶
func False[T comparable](b bool, yes, no T) T
False returns the yes when the b is false. Otherwise returns the value of no.
func OrMap ¶
func OrMap[M map[K]V, K comparable, V any](vals ...M) M
OrMap returns the first of its arguments that is not empty. If no argument has element, it returns the nil map.
func OrSlice ¶
func OrSlice[S []V, V any](vals ...S) S
OrSlice returns the first of its arguments that is not empty. If no argument has element, it returns a nil slice.
func True ¶
func True[T comparable](b bool, yes, no T) T
True returns the yes when the b is true. Otherwise returns the value of no.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.