Windows Go Development Environment configuration

Source: Internet
Author: User

Go Download https://golang.org/dl/

Ide-goland Download http://www.jetbrains.com/go/

This installs the Go1.9.3.windows-amd64.msi and Goland-2017.3.1.exe versions.

Install Go

Double-click the installation package and go down all the way next.

Once the installation is successful, use Go version to view go versions to determine if the installation was successful.

Configuring System Environment Variables

Goroot is the Go installation directory

Gopath is the search path as the compiled binary storage destination and import package (in fact your working directory, you can create your own go source file under SRC, and then start working)

Do not set the Gopath as the Go installation path

Gopath consists of three main directories: bin, pkg, SRC
The bin directory mainly contains executable files; Pkg directory to store compiled library files, mainly *.a files; The source files of go are mainly stored in the SRC directory.

You need to configure the executable directory in the Gopath to the environment variable, otherwise you will not be able to use the third-party go tool that you download yourself.

Added in path:%goroot%/bin;%gopath%/bin;

Installing Goland

Execute the installation file, all the way next. Because it is a trial version, there is a 30-day limit. Due to reload on it.

Skip the license link directly and enter the project configuration interface. License can be re-configured later

Path configuration to Gopath below

Enter the engineering interface, right-new-go file, create HelloWorld

To modify the contents of a file:

"FMT"func Main () {    fmt. Printf ("Hello world!" )}

Right click on the file and select Run.

Configure GitHub

Go to file-setting, search GitHub for configuration

Windows Go Development Environment configuration

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.