Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfThen ¶
Example ¶
fmt.Println(Max(8, 10)) // 10 fmt.Println(Max("8", "10")) // 8 fmt.Println(Min("8", "10")) // 8 fmt.Println(IfThen(true, false, true)) // false fmt.Println(IfThen(false, false, true)) // true
Output: 10 8 10 false true
func Large ¶
func Large[E constraints.Ordered](a, b E) bool
func Less ¶
func Less[E constraints.Ordered](a, b E) bool
func Max ¶
func Max[E constraints.Ordered](a, b E) E
func Min ¶
func Min[E constraints.Ordered](a, b E) E
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.