Go has native support for integers and floating-point numbers, as well as complex numbers. The subsections that follow will tell you more about each numeric type supported by Go.
Numeric data types
Integers
Go offers support for four different sizes of signed and unsigned integers, named int8, int16, int32, int64; and uint8, uint16, uint32, and uint64, respectively. The number at the end of each type shows the number of bits used for representing each type.
Additionally, int and uint exist and are the most efficient signed and unsigned integers for your current platform. Therefore, when in doubt, use int and uint, but have in mind that the size of these types changes depending on the architecture.
The difference between signed...