当前位置:网站首页>Write a go program with vscode in one article
Write a go program with vscode in one article
2022-07-05 15:27:00 【dnice】
Start writing at first go Used in the program vscode, Don't forget it for a long time , Now take time to sort it out , Simple and clear , For your reference .
1. install Go plug-in unit
2. install code runner
After installation , Will find , There is a run button in the upper right corner of the code editing page , After editing the code, click the run button directly . There is no need to input at the terminal go run The command , Improve programming efficiency . Here's the picture :
3.debug
Mouse hovering Run -> Click on Start Debugging, Here's the picture :
The new project debug, An error is as follows :
The project must be initialized first go mod, open terminal go mod init, Here's the picture :
To set breakpoints ,debug, Everything is all right , You can debug the program normally . Here's the picture :
After the above steps are completed , You can write go Procedure and debug 了 .
Commonly used quick completion keywords
Other quick completion , You can try it on your own , Enter English letters to see if there is a prompt .
边栏推荐
- R 熵权法计算权重及综合得分
- OSI 七层模型
- Common MySQL interview questions (1) (written MySQL interview questions)
- Explanation report of the explosion
- mapper. Comments in XML files
- MySQL 巨坑:update 更新慎用影响行数做判断!!!
- Detailed explanation of C language branch statements
- SQL Server learning notes
- Mysql---- function
- Select sort and bubble sort
猜你喜欢
随机推荐
SQL Server learning notes
Surpass palm! Peking University Master proposed diverse to comprehensively refresh the NLP reasoning ranking
lv_ font_ Conv offline conversion
Stm32+bh1750 photosensitive sensor obtains light intensity
Behind the ultra clear image quality of NBA Live Broadcast: an in-depth interpretation of Alibaba cloud video cloud "narrowband HD 2.0" technology
The difference between SQL Server char nchar varchar and nvarchar
Creation and optimization of MySQL index
Hongmeng system -- Analysis from the perspective of business
Common interview questions about swoole
Can I pass the PMP Exam in 20 days?
1330: [example 8.3] minimum steps
如何将 DevSecOps 引入企业?
lvgl 显示图片示例
Bugku's Eval
漫画:优秀的程序员具备哪些属性?
P1451 求细胞数量/1329:【例8.2】细胞
"Sequelae" of the withdrawal of community group purchase from the city
Jmeter性能测试:ServerAgent资源监控
Good article inventory
easyOCR 字符識別