WIN7 down GO development environment construction

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

First, install the Go installation package under Win7

Official website by the wall, do not want trouble, can only be downloaded through other channels, I am accustomed to download from here Http://www.golangtc.com/download

I downloaded the MSI installation package for Win AMD64, which I am accustomed to installing into the D:\Go directory.

Note: The MSI installation package can be directly double-clicked to install to a path under the prompts, and has helped you set the basic environment variables.

Second, configure environment variables

If we are using a ZIP installation package, then we need to configure some environment variables separately, if not, create a new one.

The variables currently known to be required are:

Goroot: where Go is installed

GOBIN: The directory of the Go tool, typically the bin directory under the installation location (also added to the PATH variable)

GOOS: Compile the target code to run the operating system for Darwin, Linux, Windows, FreeBSD, etc.

Goarch: Compile the target file to run the CPU architecture type, optional 386, AMD64, ARM, etc.

You can open the cmd command prompt line, enter go version, if you print out the Go Release number, the environment variable setting is successful.

Iii. installing the editing and debugging tools

Here choose Liteide Editing software, also download from Http://www.golangtc.com/download/liteide here,

Unpacking the package, I used to put it in the D:\Program files (x86) directory, and then send the Bin/liteide file to the desktop shortcut.

Set the environment variables that are used by the Liteide priority recognition.

(In fact, I only set the Goroot, the others I did not move)

In addition to Liteide, I also saw other Sublime Text, eclipse + goeclipse plug-ins and so on.

In fact, I prefer soruce insight for editing, jump is very convenient, but unfortunately this software has not been updated for a long time, failed to support the go language.

Iv. installation of other necessary tools

Online said to install additional Gocode tools to support auto-completion, and later found that the other new version of Liteide (I installed the version is Liteide X27.2.1) already contains this tool, so no additional installation is required.


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.