当前位置:网站首页>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 .
边栏推荐
- The cradle of eternity
- Shell script quickly counts the number of lines of project code
- Yiwen takes you into [memory leak]
- Typical problems of subnet division and super network construction
- json学习初体验–第三者jar包实现bean、List、map创json格式
- Sword finger offer II 035 Minimum time difference - quick sort plus data conversion
- AcWing 1148. Secret milk transportation problem solution (minimum spanning tree)
- [advanced C language] 8 written questions of pointer
- 盒子拉伸拉扯(左右模式)
- 鼠标右键 自定义
猜你喜欢

Make DIY welding smoke extractor with lighting

mongodb查看表是否导入成功
![Yiwen takes you into [memory leak]](/img/a8/bd1a57ef3bde8910eff2a5f68296df.png)
Yiwen takes you into [memory leak]

Clickhouse fields are grouped and aggregated, and SQL is queried according to the granularity of any time period

盒子拉伸拉扯(左右模式)

Start from the bottom structure to learn the customization and testing of fpga---- FIFO IP

我如何编码8个小时而不会感到疲倦。

Dark horse notes - exception handling

Reptile practice (VI): novel of climbing pen interesting Pavilion

Today's question -2022/7/4 modify string reference type variables in lambda body
随机推荐
长按按钮执行函数
我如何编码8个小时而不会感到疲倦。
糊涂工具类(hutool)post请求设置body参数为json数据
454-百度面经1
LeetCode. Sword finger offer 62 The last remaining number in the circle
Today's question -2022/7/4 modify string reference type variables in lambda body
mongodb查看表是否导入成功
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
制作带照明的DIY焊接排烟器
Curl command
字符串的相关编程题
爬虫实战(六):爬笔趣阁小说
新工作感悟~辞旧迎新~
Gin 入门实战
When grep looks for a process, it ignores the grep process itself
永久的摇篮
uva 1401 dp+Trie
C语言关于链表的代码看不懂?一篇文章让你拿捏二级指针并深入理解函数参数列表中传参的多种形式
Comparison of picture beds of free white whoring
7.6 simulation summary