golang vscode开发环境配置

1.下载go安装包并安装 官网下载地址
2.下载vscode并安装 官网下载地址
3.安装vscode go语言开发扩展(插件)
image
4.切换国内下载源,cmd输入如下代码

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

5.安装vscode go开发工具包
windows下vscode Ctrl+Shift+P 找到Go:Install/Update Tools全选、安装
image

image

posted @ 2023-05-31 22:58  liusyuan1996  阅读(78)  评论(0)    收藏  举报