当前位置:网站首页>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 .
边栏推荐
- MySQL----函数
- MySQL之CRUD
- Can gbase 8A view the location of SQL statement history?
- Can I pass the PMP Exam in 20 days?
- Reproduce ThinkPHP 2 X Arbitrary Code Execution Vulnerability
- Your childhood happiness was contracted by it
- P1451 calculate the number of cells / 1329: [example 8.2] cells
- Common MySQL interview questions (1) (written MySQL interview questions)
- ionic cordova项目修改插件
- F. Weights assignment for tree edges problem solving Report
猜你喜欢
随机推荐
MySQL5.7的JSON基本操作
Common PHP interview questions (1) (written PHP interview questions)
Garbage collection mechanism of PHP (theoretical questions of PHP interview)
CSDN I'm coming
Go learning ----- relevant knowledge of JWT
Calculate weight and comprehensive score by R entropy weight method
The elimination strategy of redis
Common MySQL interview questions (1) (written MySQL interview questions)
Common interview questions about swoole
ionic cordova项目修改插件
社区团购撤城“后遗症”
Bubble sort, insert sort
String modification problem solving Report
What are CSRF, XSS, SQL injection, DDoS attack and timing attack respectively and how to prevent them (PHP interview theory question)
Xiao Sha's arithmetic problem solving Report
Leetcode: Shortest Word Distance II
No one consults when doing research and does not communicate with students. UNC assistant professor has a two-year history of teaching struggle
30岁汇源,要换新主人了
go学习 ------jwt的相关知识
Magic methods and usage in PHP (PHP interview theory questions)