当前位置:网站首页>Golang foundation - data type
Golang foundation - data type
2022-07-07 01:46:00 【The hunter is eating meat】
1、 data type
1) Basic types
- Numbers
- Integer types : int8、int16、int32、int64、unit8、unit16、unit32、unit64
- Floating point type : float32、float64
- Other number types
int: 32 or 64 position uint: 32 or 64 position byte: uint8 Type alias for rune: int32 Type alias for uintptr: Unsigned integer , Used to store a pointer
- Boolean type (bool): Can only be constants true perhaps false.
- character string (string)
2) The compound type
- Array
- Structure . By combining simple types , To express more complex data structures .
3) Reference type
- The pointer
- section (slice)
- map
- channel
- interface( Interface )
- Function type
When declaring variables of reference type , The variables created are called headers (header) value .
In terms of technical details , String is also a reference type .
边栏推荐
- C语言实例_3
- 454 Baidu Mianjing 1
- 爬虫实战(六):爬笔趣阁小说
- According to the analysis of the Internet industry in 2022, how to choose a suitable position?
- Compile command line terminal swift
- Comparison of picture beds of free white whoring
- 一起看看matlab工具箱内部是如何实现BP神经网络的
- Transplant DAC chip mcp4725 to nuc980
- mongodb查看表是否导入成功
- 2022/0524/bookstrap
猜你喜欢
永久的摇篮
一文带你走进【内存泄漏】
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 2)
[advanced C language] 8 written questions of pointer
JS how to quickly create an array with length n
百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (上)
454 Baidu Mianjing 1
对C语言数组的再认识
Transplant DAC chip mcp4725 to nuc980
The difference between Tansig and logsig. Why does BP like to use Tansig
随机推荐
JS how to quickly create an array with length n
MySQL's most basic select statement
1123. The nearest common ancestor of the deepest leaf node
npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
AcWing 344. Solution to the problem of sightseeing tour (Floyd finding the minimum ring of undirected graph)
AcWing 1140. Shortest network (minimum spanning tree)
AcWing 1142. 繁忙的都市 题解(最小生成树)
Mysqlbackup restores specific tables
Today's question -2022/7/4 modify string reference type variables in lambda body
使用nodejs完成判断哪些项目打包+发版
AcWing 1141. 局域网 题解(kruskalkruskal 求最小生成树)
蓝桥杯2022年第十三届省赛真题-积木画
Typical problems of subnet division and super network construction
C语言实例_3
Mongodb checks whether the table is imported successfully
一文带你走进【内存泄漏】
mysqlbackup 还原特定的表
AcWing 344. 观光之旅题解(floyd求无向图的最小环问题)
String to date object
Start from the bottom structure to learn the customization and testing of fpga---- FIFO IP