![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang
文章平均质量分 52
Cris_1989
一个新程序猿
展开
-
Go Tutorial 02 - Data type - Primitives
Boolean type Var n bool = false Not an alias for other types (e.g. int) Zero value is false - Boolean Variable without initialized is false. Numeric types Integers Signed integers. Int type has varying size. But min 32 bits 8 bit (int8) t原创 2021-05-08 18:13:38 · 49 阅读 · 0 评论 -
Go Tutorial 01 - Variable
Variable Variable declaration Variable: var foo int Variable with initializers: var foo int = 42 Short variable declarations: foo := 42 Can’t redeclare variables, but can shadow them. All variables must be used. Visibility Lower case first lett原创 2021-05-08 18:12:17 · 58 阅读 · 0 评论