In this section we learn to write a simple Go program: print Hello Go.
第一个Go程序, 只要跟着做, 留下个印象就可以.
By Goland
creating a hello_go.go
file (suffix .go
). Contents of the documents
package main
import "fmt"
func main() {
fmt.Println("Hello Go")
}
Use the shortcut key Ctrl + Shift + F10
to run the program, results are as follows:
Perfect! Now that you've learned how to run a program of Go.