go语言学习笔记1----数据类型

GO语言内置以下基础类型

布尔类型:bool

整形:int8,byte,int16,int,uint,uintptr

浮点类型:float32,float64

复数类型:complex64,complex128

字符串:string

字符类型:rune

错误类型:error

GO语言复合类型

指针 pointer

数组 array

切片 slice

字典 map

通道 chan

结构体 struct

接口 interface

Computers are a sadness,I am the cure.
原文地址:https://www.cnblogs.com/anxiong/p/9776394.html