Akik Look at that coder
Public number: look at that code farmers
The previous content introduced the Go language in the past life, how to install the Go language in the computer.
Go’s previous life | Go theme month
This article will continue to take you into the world of Go.
1. Introduction to this article
- Install an integrated development environment (IDE) for the Go language
- Write the first Go program
1. Install the Go integrated development environment (IDE)
After installing the Go installation package, you can choose to install the Integrated Development Environment (IDE) or use the Go editor to improve the efficiency of code Development.
GoLand, developed by Jetbrains, is recommended for integrated development environments.
Goland is a Go language integrated tool development environment developed by Jetbrains on the IntelliJ platform. Goland provides editing, compiling, debugging, engineering management, refactoring, and other functions of the Go language.
Goland can be downloaded at www.jetbrains.com/go/
1. Download Goland depending on your system type
2. Install the Goland
3. Select an installation path
4. Select the installation option
Select the version for your computer
5. The installation is complete
6. Access Goland and configure Goland
Click “New Project” to start configuring the Go language
7. Configure Goland
- Location indicates the Location of the current project
- GOROOT is the installation address of the GO language
After configuring Goland according to your own situation, you can Create your first Go project by clicking Create in the lower right corner
2. Write the first Go program
1. Create a GO file in the current project path
2. Enter the following code in the edit area
package main
import "fmt"
func main() {
fmt.Println("Hello world")}Copy the code
The output is:
The output is successful.
2. Thoughts of this article
As my first Ever Go program, IT seems that Go is a modern programming language that, just as its designers Robert Griesemer, Rob Pike, and Ken Thompson have said, is clear and simple, but has a heart of quality. I also deeply understood the connotation of this sentence and was attracted by the Go language. I also plan to continue to learn the Go language in the future Go theme month and let more people feel the charm of the Go language through the gold mining platform.
This is the mascot of the Go language, designed by Renee French, a talented illustrator and wife of Rob Pike, one of Go’s designers.
It’s a lot of love.
If you find this helpful:
1. Like it so more people can see it
2, pay attention to the public number: see the code farmer, we learn together and progress together.
This article is participating in the “Nuggets 2021 Spring Recruiting activity”, click to see the details of the activity