Check out example codes for "how to get max value between two int values in go". It will help you in understanding the concepts better.

Code Example 1

number1 , number2 := 10,20
maxvalue := math.Max(float64(number1), float64(number2))
result := int(maxvalue)

Learn ReactJs, React Native from akashmittal.com