Security with Go
上QQ阅读APP看书,第一时间看更新

Unsigned integers

Using uint without a number generally chooses the largest size for your system, typically 64 bits. You can also specify one of the four specific uint sizes:

  • uint8: Unsigned 8-bit integer (0 to 255)
  • uint16: Unsigned 16-bit integer (0 to 65535)
  • uint32 : Unsigned 32-bit integer (0 to 4294967295)
  • uint64: Unsigned 64-bit integer (0 to 18446744073709551615)