当前位置:网站首页>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 .
边栏推荐
- Database learning - Database Security
- 把 ”中台“ 的思想迁移到代码中去
- JS knowledge points-01
- Cartoon: programmers don't repair computers!
- mapper.xml文件中的注释
- Transfer the idea of "Zhongtai" to the code
- First PR notes
- CODING DevSecOps 助力金融企业跑出数字加速度
- [recruitment position] Software Engineer (full stack) - public safety direction
- OSI 七层模型
猜你喜欢

lv_ font_ Conv offline conversion

把 ”中台“ 的思想迁移到代码中去

Appium自动化测试基础 — APPium基础操作API(一)

sql server学习笔记

Au - delà du PARM! La maîtrise de l'Université de Pékin propose diverse pour actualiser complètement le classement du raisonnement du NLP

Reasons and solutions for redis cache penetration and cache avalanche

D-snow halo solution

Redis' transaction mechanism
![[JVM] operation instruction](/img/f5/85580495474ef58eafbb421338e93f.png)
[JVM] operation instruction

Ten billion massage machine blue ocean, difficult to be a giant
随机推荐
P1451 calculate the number of cells / 1329: [example 8.2] cells
Ctfshow web entry explosion
Detailed explanation of C language branch statements
Array sorting num ranking merge in ascending order
Anti shake and throttling
Aike AI frontier promotion (7.5)
Number protection AXB function! (essence)
I spring and autumn blasting-1
Huiyuan, 30, is going to have a new owner
Surpass palm! Peking University Master proposed diverse to comprehensively refresh the NLP reasoning ranking
亿咖通科技通过ISO27001与ISO21434安全管理体系认证
P6183 [USACO10MAR] The Rock Game S
漫画:程序员不是修电脑的!
Bugku cyberpunk
Ctfshow web entry command execution
你童年的快乐,都是被它承包了
Bubble sort, insert sort
Where is the operation of convertible bond renewal? Is it safer and more reliable to open an account
Creation and optimization of MySQL index
Coding devsecops helps financial enterprises run out of digital acceleration