当前位置:网站首页>Basic data types in golang
Basic data types in golang
2022-07-04 09:16:00 【The diligent bird that flies first】
Note: matters needing attention
- Get the length of the object built in len() The length returned by the function can vary according to the byte length of different platforms .
- In practice , Slice or map The number of elements can be used int To express . When it comes to binary transmission 、 When reading and writing the structure description of a file , In order to keep the structure of the file unaffected by the byte length of different compiled target platforms , Do not use int and uint.
- Go Casting integers to Booleans... Is not allowed in the language .
- Boolean cannot participate in numeric operations , It can't be converted with other types .
- Go There are only casts in the language , There is no implicit type conversion . This syntax can only be used when mutual conversion is supported between two types .
- stay Go in , The essence of a character is an integer , When output directly , Is the character corresponding to UTF-8 The code value of the code .
边栏推荐
- If you can quickly generate a dictionary from two lists
- Awk from getting started to digging in (9) circular statement
- Reading notes of how the network is connected - understanding the basic concepts of the network (I)
- Report on the development trend and prospect trend of high purity zinc antimonide market in the world and China Ⓕ 2022 ~ 2027
- 2022-2028 global probiotics industry research and trend analysis report
- Awk from entry to earth (8) array
- 2022-2028 global industry research and trend analysis report on anterior segment and fundus OTC detectors
- C language - Introduction - Foundation - syntax - [main function, header file] (II)
- ArrayBuffer
- A subclass must use the super keyword to call the methods of its parent class
猜你喜欢

Ehrlich sieve + Euler sieve + interval sieve

到底什么才是DaaS数据即服务?别再被其他DaaS概念给误导了
![C language - Introduction - Foundation - syntax - [variable, constant light, scope] (V)](/img/dc/5c8077c10cdc7ad6e6f92dedfbe797.png)
C language - Introduction - Foundation - syntax - [variable, constant light, scope] (V)

After unplugging the network cable, does the original TCP connection still exist?

Opencv environment construction (I)

AMLOGIC gsensor debugging

Sequence model

Live in a dream, only do things you don't say

How should PMP learning ideas be realized?

awk从入门到入土(12)awk也可以写脚本,替代shell
随机推荐
Development trend and market demand analysis report of high purity tin chloride in the world and China Ⓔ 2022 ~ 2027
Live in a dream, only do things you don't say
Horizon sunrise X3 PI (I) first boot details
awk从入门到入土(6)正则匹配
awk从入门到入土(15)awk执行外部命令
A subclass must use the super keyword to call the methods of its parent class
awk从入门到入土(4)用户自定义变量
2022-2028 global optical transparency industry research and trend analysis report
Launchpad x | mode
随机事件的关系与运算
Trim leading or trailing characters from strings- Trim leading or trailing characters from a string?
Review of last week's hot spots (6.27-7.3)
到底什么才是DaaS数据即服务?别再被其他DaaS概念给误导了
awk从入门到入土(8)数组
Mantis creates users without password options
[untitled] forwarding least square method
awk从入门到入土(9)循环语句
Service call feign of "micro service"
How to pass custom object via intent in kotlin
awk从入门到入土(14)awk输出重定向