Gogland configuration using the Go language IDE

Source: Internet
Author: User

Gogland is the JetBrains company launched the Go Language integrated development environment. Gogland also based on the IntelliJ platform development, support JetBrains plug-in system. The official version is not yet released. Official:https://www.jetbrains.com/go/. About the use, is about to begin!

First, install the Golang

1) first go to https://golang.org/dl/ to Select the appropriate installation package for your system (inside the wall:http://golangtc.com/download ).

2) Download complete installation to the specified directory. I am here (D:\Go).

3) Configuring Glang environment Variables

Enter My Computer , advanced Settings , environment variables Seeif thegoroot variable exists, and the Path The Goroot is also set in the variable . If not, add a goroot variable and the path will enter the root directory of Go after you have just installed it , as mine is:D:\Go\. Then edit the Path variable and add ";%goroot%bin" to the last face.

 

       go command depends on an environment variable: gopath This is not Go installation directory, but your work (project) directory (your code will be in this directory). gopath can have more than one, windows Use the semicolon ;) linux system is colon ( :) when there are multiple gopath go get Gopath D:\Go\MyGolang, and creating the relevant directory as follows:

4) Restart the operating system and verify by command

Tip: Golang related installation and environment configuration has ended;

Second, installation Gogland

1) Download and install (process slightly)

2) Configuration related

Open "File-settings", pop up the following configuration interface

Tip: You need to configure the Goroot and Gopath paths here. Project Gopath, where you can set up your own projects working directory.

3) Compile and run

If you need to run a single *.go directly right-click on "Run-run", if there are more than one directory to do some configuration, the steps are as follows: Click run–edit configurations, go to Run/debug Configurations Configuration panel.

Gogland configuration using the Go language IDE

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.