go语言 类型:基础类型和复合类型

Go 语言中包括以下内置基础类型:
布尔型:bool
整型:int int64 int32 int16 int8 uint8(byte) uint16 uint32 uint64 uint
浮点型:float32 float64
复数型:complex64 complex128
字符串:string
字符型:rune
错误型:error

Go 语言中包括以下内置复合类型:

数组:array
切片:slice
指针:pointer
字典:map
通道:chan
结构体:struct
接口:interface

原文地址:https://www.cnblogs.com/osfipin/p/4857429.html