Golang- data types - plastic

1, the basic description of the data types

  

 

 

 1.1, integer type

  1.1.1 each type Integer

  

 

  

 

 

   Unsigned int type:

  

 

 

   

 

 

   Other types of instructions int

  

 

   

  1.1.2 Details integer
  1) Golang TYPE integers: signed and unsigned, int uint size and related systems.
  2) The default integer type int is declared Golang

  

  3) How to view a variable in the program byte size and data type (use more)

  

  4) Golang program integer variable in use, ensure compliance with the principle of Little Bao Dai, namely: to ensure the program runs correctly under, try to use a small footprint data types. [Eg: Age]

   

 

   5) bit: the minimum storage unit of the computer. byte: basic computer storage unit. [Binary further detail] 1byte = 8 bit

 

Guess you like

Origin www.cnblogs.com/Essaycode/p/12640204.html