This is a creation in Article, where the information may have evolved or changed.
From:
Https://www.golangtc.com/t/564d30cfb09ecc72c30000b1 #30 's comments in this article, original for Https://www.golangtc.com/member/txgo
Original
Txgo 2016-02-25 09:01
I share a little bit of the installation process, mainly Qiang issues.
Os:ubuntu 15.10
Other tools: Git
- Install go, the site has downloaded, after the installation is complete configuration goroot and Gopath environment variables, and go env confirmed
- Install Lantern, refer to Https://github.com/getlantern/lantern instructions, directly download the binary file on the line (Ubuntu/debain) there is a. deb package, started after installation, the default proxy address is open HTTP (s)://localhost:8787 The following large file download if the download is unsuccessful, you can use this proxy.
- Follow the body of this post to install Vscode, and go to plug-in center to install Golang plugin support
- Install plugin must tool, this step is most annoying, go get will have half error, originally is Qiang, this station can under corresponding package,
- I took another approach: GitHub. The practice is to start with godoc-http:6060, browser browsing http://localhost:6060/pkg/#other can see the list of items under golang.org/x/, which are actually hosted on GitHub, But the path remains compatible with the original path, so now $GOPATH create the corresponding directory under the/src/directory: mkdir $GOPATH/src/golang.org/x/and then go to GitHub and download repo locally, like the Net project is in the $ Run git clone https://github.com/golang/net.git in the gopath/src/golang.org/x/directory and return to the 4th step until all the tools can be run at the command line
- The installation is complete and these are in place, finally follow the Go plugin configuration, open Vscode Click File->preferences->user Settings, on the right Settings.json (located in $home/.config/ Code/user directory), configure, Go.goroot, Go.gopath confirm that you want to configure to the correct directory, other can experiment, all the options on the left column can override the default value.
The basic installation configuration can be completed.
- If you need debug, you need to install delve and configure it, and it is recommended to install it directly with GitHub repo.