Golang + Atom Programming Environment setup

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

There are two solutions to the problem of go get being wall.

    1. Go to GitHub to find the source code, as described below
    2. Continue using go get, but set up a proxy for it.

For Method 1:
corresponding to the installation of the following packages,

-v-u golang.org/x/tools/cmd/godoc

Change the order to

$GOPATHclone https://github.com/golang/tools

This is because github.com has a golang.org code image, so you can manually clone the required toolkit source from GitHub, and then execute the following command to install it.

go build golang.org/x

Other tool installation methods are similar to the methods described above.

For method Two:
Here the agent tool chooses Lantern. Its proxy IP address is http://127.0.0.1:8787 instead of http://127.0.0.1:16823/
First perform the following method to set up the agent for the system:

//windows 系统cmdset http_proxy=http://127.0.0.1:8787set https_proxy=https://127.0.0.1:8787
//ubuntu export http_proxy=http://127.0.0.1:8787export https_proxy=https://127.0.0.1:8787

Second, to set up a proxy for the Git tool:

git config --global http.proxy http://127.0.0.1:8787git config --global https.proxy https://127.0.0.1:8787

The corresponding cancellation commands are:

gitconfig--global--unsethttp.proxygitconfig--global--unsethttps.proxy

You can then use the go get command to install the toolkit.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.