Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Max ¶ added in v1.0.74
Max returns the maximum value among the given values. The values must be of a type that implements the cmp.Ordered interface for comparison.
func MaxBy ¶ added in v1.0.75
MaxBy finds the maximum value in the collection t according to the provided comparison function fn. It returns the maximum value found.
Types ¶
type Ordering ¶ added in v1.0.72
type Ordering int
Ordering is the result of a comparison between two values.
func Reverse ¶ added in v1.0.182
Reverse compares two ordered values and returns the inverse of Cmp as an Ordering.
Click to show internal directories.
Click to hide internal directories.