当前位置:网站首页>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 .
边栏推荐
- Garbage collection mechanism of PHP (theoretical questions of PHP interview)
- The difference between abstract classes and interfaces in PHP (PHP interview theory question)
- JS topic - console log()
- Stop B makes short videos, learns Tiktok to die, learns YouTube to live?
- Number protection AXB function! (essence)
- Common redis data types and application scenarios
- Redis' transaction mechanism
- sql server学习笔记
- Redis distributed lock principle and its implementation with PHP (1)
- Go learning ----- relevant knowledge of JWT
猜你喜欢
随机推荐
How can I quickly check whether there is an error after FreeSurfer runs Recon all—— Core command tail redirection
GPS original coordinates to Baidu map coordinates (pure C code)
How to paste the contents copied by the computer into mobaxterm? How to copy and paste
MySQL之CRUD
爱可可AI前沿推介(7.5)
[recruitment position] infrastructure software developer
【jvm】运算指令
Surpass palm! Peking University Master proposed diverse to comprehensively refresh the NLP reasoning ranking
I include of spring and Autumn
Jmeter性能测试:ServerAgent资源监控
lv_font_conv离线转换
当代人的水焦虑:好水究竟在哪里?
Detailed explanation of QT creator breakpoint debugger
sql server char nchar varchar和nvarchar的区别
Bugku's eyes are not real
Ecotone technology has passed ISO27001 and iso21434 safety management system certification
Brief introduction of machine learning framework
"Sequelae" of the withdrawal of community group purchase from the city
数学建模之层次分析法(含MATLAB代码)
Creation and use of thymeleaf template









