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