The int type in go will be 64 bits on 64-bit machines in the next version of version 1.1. If you download the latest development code, you can use it now.
It is not possible to force an int be a specific size. However, when you use int , you should never take a specific size. Instead, explicitly enter your numbers as int64.
source share