当前位置:网站首页>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.
边栏推荐
- [daily question] - Huawei machine test 01
- Sqli - Labs Clearance (less6 - less14)
- Latex error: the font size command \normalsize is not defined problem solved
- 20201025 visual studio2019 qt5.14 use of signal and slot functions
- js判断数组中对象是否存在某个值
- Solve the problem of bindchange event jitter of swiper component of wechat applet
- js的防抖和节流
- 解决微信小程序swiper组件bindchange事件抖动问题
- 蚂蚁集团g6初探
- Selenium memo: selenium\webdriver\remote\remote_ connection. Py:374: resourcewarning: unclosed < XXXX > solution
猜你喜欢

Uploading attachments using Win32 in Web Automation

There is no way to drag the win10 desktop icon (you can select it, open it, delete it, create it, etc., but you can't drag it)

In depth study of JVM bottom layer (V): class loading mechanism

Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件

js中map和forEach的用法

In depth study of JVM bottom layer (IV): class file structure

PHP Session原理简析

Latex compilation error I found no \bibstyle &\bibdata &\citation command

Latex 报错 LaTeX Error: The font size command \normalsize is not defined问题解决

Latex compiles Chinese in vscode and solves the problem of using Chinese path
随机推荐
Latex参考文献引用失败 报错 LaTeX Warning: Citation “*****” on page y undefined on input line *
Nodejs - Express middleware modification header: typeerror [err_invalid_char]: invalid character in header content
Anti shake and throttling of JS
A preliminary study on ant group G6
JS countdown case
20210306 reprint how to make TextEdit have background pictures
Functions of tensorrt
Latex 编译报错 I found no \bibstyle & \bibdata & \citation command
JS judge whether the object is empty
ModuleNotFoundError: No module named ‘jieba. analyse‘; ‘ jieba‘ is not a package
(第一百篇BLOG)写于博士二年级结束-20200818
Improve user experience defensive programming
Pytest (3) parameterize
js中对于返回Promise对象的语句如何try catch
JS to determine whether there is a value in the object in the array
看完有用的blog
默认google浏览器打不开链接(点击超链接没有反应)
SQLI-LABS通关(less15-less17)
Sentry搭建和使用
Self study table Au