5

Golang变量的数据类型

 3 years ago
source link: https://studygolang.com/articles/35018
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Golang变量的数据类型

mob604756fbd94e · 4天之前 · 132 次点击 · 预计阅读时间不到 1 分钟 · 大约8小时之前 开始浏览    

1.基本数据类型

  1.1 数值型

    1.1.1 整数类型

      int、int8、int16、int32

      uint、uint8、uint16、uint32、uint64、byte

   1.1.2 浮点类型

      float32、float64

  1.2字符型

  没有专门的字符型,使用byte,来保存单个字母字符

  1.3布尔型

  1.4字符串

    string

2.派生/复杂数据类型

  2.1 指针

    pointer

  2.2 数组

  2.3 结构体

    struct

  2.4 管道

    channel

  2.5 函数

  2.6切片

    slice

  2.7接口

    interface

2.8map


有疑问加站长微信联系(非本文作者)

280

本文来自:51CTO博客

感谢作者:mob604756fbd94e

查看原文:Golang变量的数据类型

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:701969077


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK