当前位置:网站首页>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 .
边栏推荐
- Array sorting num ranking merge in ascending order
- 超越PaLM!北大碩士提出DiVeRSe,全面刷新NLP推理排行榜
- 如何将 DevSecOps 引入企业?
- easyOCR 字符識別
- 漫画:程序员不是修电脑的!
- CSRF, XSS science popularization and defense
- Example of lvgl display picture
- Redis distributed lock principle and its implementation with PHP (2)
- CODING DevSecOps 助力金融企业跑出数字加速度
- go学习 ------jwt的相关知识
猜你喜欢

Ecotone technology has passed ISO27001 and iso21434 safety management system certification

Ionic Cordova project modification plug-in

Select sort and bubble sort

Misc Basic test method and knowledge points of CTF

Number protection AXB function! (essence)

Crud de MySQL

Common PHP interview questions (1) (written PHP interview questions)

First PR notes

Reasons and solutions for redis cache penetration and cache avalanche

CSRF, XSS science popularization and defense
随机推荐
Surpass palm! Peking University Master proposed diverse to comprehensively refresh the NLP reasoning ranking
亿咖通科技通过ISO27001与ISO21434安全管理体系认证
Bugku cyberpunk
Cartoon: programmers don't repair computers!
Appium自动化测试基础 — APPium基础操作API(二)
Reproduce ThinkPHP 2 X Arbitrary Code Execution Vulnerability
Huiyuan, 30, is going to have a new owner
Brief introduction of machine learning framework
Redis distributed lock principle and its implementation with PHP (2)
PHP high concurrency and large traffic solution (PHP interview theory question)
R 熵权法计算权重及综合得分
Usage and usage instructions of JDBC connection pool
Behind the ultra clear image quality of NBA Live Broadcast: an in-depth interpretation of Alibaba cloud video cloud "narrowband HD 2.0" technology
queryRunner. Query method
JMeter performance test: serveragent resource monitoring
你童年的快乐,都是被它承包了
Ten billion massage machine blue ocean, difficult to be a giant
MySQL之CRUD
JS topic - console log()
Optional parameters in the for loop