当前位置:网站首页>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 .
边栏推荐
- Awk from entry to penetration (6) regular matching
- C语言-入门-基础-语法-[变量,常亮,作用域](五)
- 《网络是怎么样连接的》读书笔记 - Tcp/IP连接(二)
- Clion console output Chinese garbled code
- Awk from getting started to digging in (9) circular statement
- Nurse level JDEC addition, deletion, modification and inspection exercise
- Awk from getting started to digging in (11) detailed explanation of awk getline function
- Report on research and investment prospect prediction of China's electronic grade sulfuric acid industry (2022 Edition)
- Reading notes of how the network is connected - understanding the basic concepts of the network (I)
- 到底什么才是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)
](/img/5a/c6a3c5cd8038d17c5b0ead2ad52764.png)
C语言-入门-基础-语法-[主函数,头文件](二)

awk从入门到入土(12)awk也可以写脚本,替代shell

Target detection -- intensive reading of yolov3 paper
](/img/89/0f5f4ba07c637b09abe873016cba2d.png)
C语言-入门-基础-语法-[标识符,关键字,分号,空格,注释,输入和输出](三)

HMS core helps baby bus show high-quality children's digital content to global developers

保姆级JDEC增删改查练习

Relationship and operation of random events

LeetCode 74. Search 2D matrix

Function comparison between cs5261 and ag9310 demoboard test board | cost advantage of cs5261 replacing ange ag9310
随机推荐
How to batch change file extensions in win10
Nurse level JDEC addition, deletion, modification and inspection exercise
ArrayBuffer
LeetCode 74. Search 2D matrix
Research Report on the current market situation and development prospects of calcium sulfate whiskers in China (2022 Edition)
Leetcode topic [array] - 121 - the best time to buy and sell stocks
DR6018-CP01-wifi6-Qualcomm-IPQ6010-IPQ6018-FAMILY-2T2R-2.5G-ETH-port-CP01-802-11AX-MU-MIMO-OFDMA
Sword finger offer 30 contains the stack of Min function
swatch
C語言-入門-基礎-語法-[運算符,類型轉換](六)
China electronic grade sulfur trioxide Market Forecast and investment strategy report (2022 Edition)
Awk from getting started to digging in (9) circular statement
Awk from entry to earth (8) array
Turn: excellent managers focus not on mistakes, but on advantages
Simulate EF dbcontext with MOQ - mocking EF dbcontext with MOQ
Relationship and operation of random events
Global and Chinese market of planar waveguide optical splitter 2022-2028: Research Report on technology, participants, trends, market size and share
MySQL foundation 02 - installing MySQL in non docker version
Awk from entry to earth (15) awk executes external commands
2022-2028 global edible probiotic raw material industry research and trend analysis report