当前位置:网站首页>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 .
边栏推荐
- AcWing 1140. 最短网络 (最小生成树)
- Public key \ private SSH avoid password login
- Vocabulary in Data Book
- How can I code for 8 hours without getting tired.
- Comparison of picture beds of free white whoring
- JS ES5也可以創建常量?
- 百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (下)
- 使用nodejs完成判断哪些项目打包+发版
- Blue Bridge Cup 2022 13th provincial competition real topic - block painting
- Make DIY welding smoke extractor with lighting
猜你喜欢
AcWing 345. 牛站 题解(floyd的性质、倍增)
Typical problems of subnet division and super network construction
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 1)
爬虫实战(六):爬笔趣阁小说
【唯一】的“万字配图“ | 讲透【链式存储结构】是什么?
Modify the system time of Px4 flight control
Can't you understand the code of linked list in C language? An article allows you to grasp the secondary pointer and deeply understand the various forms of parameter passing in the function parameter
Appium automation test foundation uiautomatorviewer positioning tool
ROS学习(26)动态参数配置
Right mouse button customization
随机推荐
Mongodb checks whether the table is imported successfully
hdu 4661 Message Passing(木DP&组合数学)
Yunna - work order management system and process, work order management specification
HDU 4661 message passing (wood DP & amp; Combinatorics)
MySQL's most basic select statement
Analyze "C language" [advanced] paid knowledge [End]
初识MySQL
AcWing 1148. Secret milk transportation problem solution (minimum spanning tree)
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
curl 命令
字符串的相关编程题
AcWing 1140. 最短网络 (最小生成树)
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
C语言实例_5
C语言实例_2
LeetCode:1175. 质数排列
C语言实例_3
mysqlbackup 还原特定的表
刨析《C语言》【进阶】付费知识【完结】
Long press the button to execute the function