【Windows系统】基于vscode搭建go语言开发环境

2020-09-20  本文已影响0人  CurryCoder

微信公众号:CurryCoder的程序人生

怕什么真理无穷,进一寸有一寸的欢喜

image

1.golang安装包下载与安装

image image image image

2.与go语言相关的vscode配置

image image image image
{
    "version": "0.2.0",
    "configurations": [
    
    
        {
            "name": "LaunchGo",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "remotePath": "",
            "port": 5546,
            "host": "127.0.0.1",
            "program": "${fileDirname}",
            "env": {
                "GOPATH": "E:/LearnGo",
                "GOROOT": "D:/Go_Dir"
            },
            "args": [],
            //"showLog": true
        }
    ]
}

3.hello world我们又见面啦

package main

import "fmt"

func main() {
    fmt.Printf("Hello World!")
}
image image

4.相关资料

上一篇 下一篇

猜你喜欢

热点阅读