当前位置:网站首页>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 .
边栏推荐
猜你喜欢

keep-alive

Object. defineProperty() - VS - new Proxy()

OSI 七层模型

Mysql---- function
![P6183 [USACO10MAR] The Rock Game S](/img/f4/d8c8763c27385d759d117b515fbf0f.png)
P6183 [USACO10MAR] The Rock Game S

Behind the ultra clear image quality of NBA Live Broadcast: an in-depth interpretation of Alibaba cloud video cloud "narrowband HD 2.0" technology

P1451 求细胞数量/1329:【例8.2】细胞

sql server学习笔记

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

【简记】解决IDE golang 代码飘红报错
随机推荐
P1451 求细胞数量/1329:【例8.2】细胞
GPS original coordinates to Baidu map coordinates (pure C code)
Redis' transaction mechanism
Visual task scheduling & drag and drop | scalph data integration based on Apache seatunnel
Explanation report of the explosion
30岁汇源,要换新主人了
Ten billion massage machine blue ocean, difficult to be a giant
【简记】解决IDE golang 代码飘红报错
wxml2canvas
Cartoon: what are the attributes of a good programmer?
Huiyuan, 30, is going to have a new owner
String modification problem solving Report
Interpretation of Apache linkage parameters in computing middleware
What are the domestic formal futures company platforms in 2022? How about founder metaphase? Is it safe and reliable?
Aike AI frontier promotion (7.5)
mapper. Comments in XML files
Common MySQL interview questions (1) (written MySQL interview questions)
一文搞定vscode编写go程序
[recruitment position] Software Engineer (full stack) - public safety direction
P6183 [USACO10MAR] The Rock Game S