【Go语言】【4】GO语言类型和为类型增加方法

一、GO语言的类型 GO语言中内置了如下基础类型: 整型:byte(int8)、int16、int、uint等 浮点型:float32、float64 复数类型:complex64、complex128 布尔类型:bool 字符类型:rune 字符串:string 错误类型:error 同时GO语言也支持下面的复合类型: 指针 数组 切片:slice 集合:map 通道:chan 结构体:stru
相关文章
相关标签/搜索