Docs Functions math math.Maxmath.MaxReturns the greater of all numbers. Accepts scalars, slices, or both.Syntaxmath.Max VALUE...Returnsfloat64{{ math.Max 1 (slice 2 3) 4 }} → 4Last updated: January 1, 0001Improve this page