当前位置:网站首页>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 .
边栏推荐
- JS ES5也可以創建常量?
- JS ES5也可以创建常量?
- 拖拽改变顺序
- JS how to quickly create an array with length n
- uva 1401 dp+Trie
- Amway wave C2 tools
- JS reverse -- ob confusion and accelerated music that poked the [hornet's nest]
- 搭建【Redis in CentOS7.x】
- Blue Bridge Cup 2022 13th provincial competition real topic - block painting
- AcWing 1148. Secret milk transportation problem solution (minimum spanning tree)
猜你喜欢

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

JVM memory model

Transplant DAC chip mcp4725 to nuc980

修改px4飞控的系统时间

454-百度面经1

LeetCode:1175. 质数排列

Yunna | work order management measures, how to carry out work order management

Gin 入门实战
![[signal and system]](/img/aa/a65d6da1d1d9410254ca7b775e24a6.png)
[signal and system]

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
随机推荐
修改px4飞控的系统时间
Match VIM from zero (0) -- Introduction to vimscript
场景实践:基于函数计算快速搭建Wordpress博客系统
hdu 4661 Message Passing(木DP&组合数学)
C language instance_ three
Sword finger offer II 035 Minimum time difference - quick sort plus data conversion
LeetCode. Sword finger offer 62 The last remaining number in the circle
js如何快速创建一个长度为 n 的数组
Let's see how to realize BP neural network in Matlab toolbox
刨析《C语言》【进阶】付费知识【二】
Set up [redis in centos7.x]
爬虫实战(六):爬笔趣阁小说
AcWing 1148. Secret milk transportation problem solution (minimum spanning tree)
Yunna - work order management system and process, work order management specification
Share a general compilation method of so dynamic library
IDEA常用的快捷键
AcWing 345. 牛站 题解(floyd的性质、倍增)
从底层结构开始学习FPGA----FIFO IP的定制与测试
How can I code for 8 hours without getting tired.
安利一波C2工具