当前位置:网站首页>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 .
边栏推荐
- 制作带照明的DIY焊接排烟器
- Box stretch and pull (left-right mode)
- Machine learning: the difference between random gradient descent (SGD) and gradient descent (GD) and code implementation.
- DS-5/RVDS4.0变量初始化错误
- 刨析《C语言》【进阶】付费知识【完结】
- The difference between Tansig and logsig. Why does BP like to use Tansig
- HDU 4661 message passing (wood DP & amp; Combinatorics)
- Set up [redis in centos7.x]
- JVM 内存模型
- ZOJ problem set – 2563 long dominoes [e.g. pressure DP]
猜你喜欢
Yiwen takes you into [memory leak]
一文带你走进【内存泄漏】
Analyze "C language" [advanced] paid knowledge [End]
tansig和logsig的差异,为什么BP喜欢用tansig
Appium foundation - appium inspector positioning tool (I)
js如何快速创建一个长度为 n 的数组
爬虫实战(六):爬笔趣阁小说
AcWing 345. Cattle station solution (nature and multiplication of Floyd)
Dark horse notes - exception handling
Yunna | work order management software, work order management software app
随机推荐
The difference between Tansig and logsig. Why does BP like to use Tansig
图片打水印 缩放 和一个输入流的转换
Compile command line terminal swift
LeetCode:1175. 质数排列
刨析《C语言》【进阶】付费知识【一】
Add PDF Title floating window
POJ 3177 Redundant Paths POJ 3352 Road Construction(双连接)
Comparison of picture beds of free white whoring
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 2)
LeetCode. Sword finger offer 62 The last remaining number in the circle
Machine learning: the difference between random gradient descent (SGD) and gradient descent (GD) and code implementation.
Use nodejs to determine which projects are packaged + released
curl 命令
ZOJ Problem Set – 2563 Long Dominoes 【如压力dp】
JVM 内存模型
C language instance_ five
What does security capability mean? What are the protection capabilities of different levels of ISO?
各种语言,软件,系统的国内镜像,收藏这一个仓库就够了: Thanks-Mirror
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
736. LISP syntax parsing: DFS simulation questions