Development tools:

Text class editors: Notepad, Notepad, Sublime Text, Atom…

Execute the program by command

IED: Integrated Development Environment

goland

1.1 use Goland

Goland is JetBrains’ Go LANGUAGE IDE, which is powerful and easy to use.

Download it at www.jetbrains.com/go

For Mac and Windows, there is a direct installation file, double-click directly, install foolishly, all the way to Next, and finish.

Open Goland tool, Goland activation code: idea.iblue.me

New Go Project:

Create a project:

Goland configuration goroot:

Gopath configuration:

Goland Common shortcut keys File shortcut keys: CTRL+E to open the recently browsed file. CTRL+SHIFT+E to open the most recently changed file. CTRL+N to quickly open a struct structure. CTRL+SHIFT+N to quickly open the file. Code formatting: CTRL+ALT+T, you can pack code in a block, for exampleif{... }else{... }. CTRL+ALT+L, format the code. CTRL+ space, code prompt. CTRL+/, single line comment. CTRL+SHIFT+/ for multi-line comments. CTRL+B to quickly open a structure or method at the cursor (jump to definition). CTRL+ "+/-" to expand or collapse the current method. Find and position CTRL+R, replace text. CTRL+F, find the text. CTRL+SHIFT+F for global search. CTRL+G to quickly locate a row. Edit ALT+Q to see the declaration of the current method. CTRL+Backspace to delete the word. SHIFT+ENTER, you can insert a new row down, even if the cursor is in the middle of the current row. CTRL+X deletes the line where the cursor is located. CTRL+D, copy the current cursor line. ALT+SHIFT+UP/DOWN to move the code on the line where the cursor is. CTRL+SHIFT+U to change the case of the selected content.Copy the code

Install GoLand in Ubuntu

First download GoLand software into the download folder. Then enter the following command on the terminal:

ruby@ubuntu:~/ download $sudo tar -xzf goland-2017.3.3.tar.gz -c /optCopy the code

Go to the bin directory and run the following command:

Ruby @ ubuntu: / opt/GoLand - $sh GoLand 2017.3.3 / bin. ShCopy the code

1.2 use of the atom

Install the Atom tool, then install plugins such as the Go-Plus plugin and Atom-Terminal-Panel.

1. Install the Go-Plus plugin, which provides support for almost all go language development in Atom, including Tools, build Flows, Linters, Vet, and Coverage Tools. It also contains many code snippets and a few other features.

2.language-go

3. Install the file-icon plugin, which provides a large number of icon displays for files with different suffixes.

4. Set the font size

1.3 Other development tools

Sublime text, editplus, notpad++, eclipse, etc.