Max

Returns the maximum value in a slice of comparable elements.


slices.Max([]int{3, 1, 2})
                        
introduction.go