当前位置:网站首页>Go common compilation fails
Go common compilation fails
2022-07-02 06:55:00 【kq1983】
Example
1. Different types
var a int16 = 10;
var b int32 = 10;
if(a==b) { // Compile not pass
}
- 1.
- 2.
- 3.
- 4.
- 5.
2. Out of range
var c int8;
if(c==128) { // Transboundary Maximum 127
}
- 1.
- 2.
- 3.
- 4.
3. Add up 、 reduce 、 ride 、 except
var a1 int32 = 10;
var a2 int64 = 20;
var a3 int64 ;
a3 = a1+a2; // Different types
- 1.
- 2.
- 3.
- 4.
- 5.
invisible
if a:=18; a< 20 {
fmt.Printf(" a <20 \n")
}else{
fmt.Printf(" a >=20 \n")
}
// a The scope of if-else In block The following compilation fails
fmt.Printf(" a.value=%d \n",a)
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
边栏推荐
- CVE-2015-1635(MS15-034 )远程代码执行漏洞复现
- Fe - eggjs combined with typeorm cannot connect to the database
- The table component specifies the concatenation parallel method
- CVE-2015-1635(MS15-034 )遠程代碼執行漏洞複現
- js中对于返回Promise对象的语句如何try catch
- 由於不正常斷電導致的unexpected inconsistency;RUN fsck MANUALLY問題已解决
- Linux MySQL 5.6.51 community generic installation tutorial
- After reading useful blogs
- Record RDS troubleshooting once -- RDS capacity increases dramatically
- 浏览器滚动加载更多实现
猜你喜欢
Linux MySQL 5.6.51 community generic installation tutorial
SQL注入闭合判断
Recursion (maze problem, Queen 8 problem)
sqli-labs通关汇总-page3
Sentry construction and use
Sqli labs customs clearance summary-page3
js中map和forEach的用法
Win10: add or delete boot items, and add user-defined boot files to boot items
Review of reflection topics
【文献阅读与想法笔记13】 Unprocessing Images for Learned Raw Denoising
随机推荐
ZZQ的博客目录--更新于20210601
Self study table Au
Pytest (3) parameterize
[leetcode question brushing day 35] 1060 Missing element in ordered array, 1901 Find the peak element, 1380 Lucky number in matrix
Automation - when Jenkins pipline executes the nodejs command, it prompts node: command not found
Latest CUDA environment configuration (win10 + CUDA 11.6 + vs2019)
Kali latest update Guide
Improve user experience defensive programming
Linux MySQL 5.6.51 Community Generic 安装教程
Explanation and application of annotation and reflection
sqli-labs通关汇总-page2
Win10: add or delete boot items, and add user-defined boot files to boot items
js数组的常用的原型方法
JS delete the last bit of the string
PHP Session原理简析
Usage of map and foreach in JS
SQLI-LABS通关(less18-less20)
Log - 7 - record a major error in missing documents (A4 paper)
CTF web practice competition
Latex 编译报错 I found no \bibstyle & \bibdata & \citation command