Use IntelliJ idea to build the go language development environment, pro-Test available

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

1 installation Version go1.5


2 Download SDK: Download Address: Http://golangtc.com/download


3 Follow the prompts to install, placed in the D:/go directory


4 Download Install INTELLJ idea, address: http://www.jetbrains.com/idea/


5 Follow the prompts to install INTELLJ idea


6 Configuring the Go plugin for idea

One is directly in the Settings->plugins->intsall JetBrains plugins-a search Golang, but I did not search, the internet said to compile Go-lang-plugin source to get the jar, But my compilation always comes up with problems, giving up

I am like this: I vcs->check from the Internet from version control, Docker GitHub source code address->clone Source to the IDE, there will be a hint: found the. Go plugin, install, reboot after installation is complete Idea, and configure the Go SDK, just want to go to the installation directory.


7 Configuration of the system environment variables:

$GOROOT point to the root directory after the Golang installation, the Windows platform, such as D:/go, is automatically written to the system environment variables during installation by the Setup program.
Processor Architecture $GOARCH Target platform (compiled target platform) (386, AMD64, arm)
operating system $GOOS target platform (compiled target platform) (Darwin, FreeBSD, Linux, Windows)
$GOBIN point to the Bin directory under the root directory after installation, that is, the default is C:/go/bin under the $goroot/bin,windows platform, which is automatically added to the path variable by the Setup program during the installation process


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.