GoSliceslices.Max

Returns the maximum value in the slice. (Go 1.21+)

문법

slices.Max(x []E) E