Types

Integers

When you are working with integer values, you should always use the int data type unless you have a good reason to use the sized or unsigned integer types.

  • int8: 128-128 to 127127
  • int16: 215-2^15 to 2152^15 - 1$
  • int32: 231-231 to 23112^31 - 1
  • int64: 263-263 to 26312^63 - 1
  • int: Platform dependent (e.g. 64 bits wide on a 64-bit system)

https://www.callicoder.com/golang-basic-types-operators-type-conversion/


Children
  1. Array
  2. Interface
  3. Map
  4. Struct