Golang development: environment (3) development tool Goland installation and activation

This section mainly introduces the main IDE developed by golang, Goland. Can effectively improve development efficiency. I have used the IntelliJ+GO plug-in for a period of time, but the function is similar to goland. However, the other developers on the team were basically Goland. Later, in order to unify various formats and development specifications, they were replaced by Goland. The functions of the IDE are basically similar, which is convenient to use. It is best that the team use the same IDE.

Download and install Goland

Download address: https://www.jetbrains.com/go/download/
Download the latest mac version of goland from the official website. After tossing in the middle of the night, I found that it couldn't be activated. What a waste of time.
Later, I shared the version of 2018.1.7 I downloaded last year (Mac version).
Link: https://pan.baidu.com/s/1vRbPkf73L20xf0mgwU2X0A
Extraction code: ifh5

Fool-style installation after downloading.
The main thing is activation

Open goland, it will take the initiative to enter the activation interface. Select "License server", fill in " http://idea.iblue.me " for License server and click the activation button. You can activate it after a while.

If you have enough power, you can buy the original version. The original purchase address:
https://www.jetbrains.com/go/buy/

Goland is simple to use

Open the IDE, click New Project, select $GOPATH->src, and create a test directory.
Right click -> GO file, fill in main.go as the name

package main

import "fmt"

func main() {
	fmt.Println("hello world")
}

Right click Run go build main.go and check the output window under the IDE

hello world

Process finished with exit code 0

The above content is printed, indicating that the IDE installation is complete. You can write code happily later.

Guess you like

Origin blog.csdn.net/feifeixiang2835/article/details/91350177