golang max function code example Example: go max, maximum integer value const MAXINT = int(^uint(0) >> 1) // maximum value for an integer