Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfElse ¶
Ternary logic function. If `cond` is true, `v` is returned. Otherwise `alt` is returned.
func IfElseF ¶
Ternary logic function. If `cond` is true, the value obtained by evaluating `f` is returned. Otherwise `alt` is evaluated and returned.
func Max ¶ added in v0.16.0
func Max[T constraints.Ordered](x, y T) T
Max returns the largest of two ordered values. Note the values can be strings as well as numeric types.
func Min ¶ added in v0.16.0
func Min[T constraints.Ordered](x, y T) T
Min returns the smallest of two ordered values. Note the values can be strings as well as numeric types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.