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 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

Go to My Computer , advanced Settings , environment variables see if thegoroot variable exists, and if the Path variable is also set Goroot. 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.

the go command relies on an environment variable:Gopath, this is not the Go installation directory, but your work (project) directory (your code will be in that directory). Gopath can have more than one, Windows is separated by semicolons (;), the Linux system is a colon (:), when there are multiple Gopath , the default is to put the contents of go get in the first directory. Here we create a new gopath variable, taking my example: 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 the "Run-run", if there are more than one directory to do some configuration, the steps are as follows: Click Run–edit configurations, then go to run/debug configurations configuration panel.

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.