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