Create and Run the Hello World Program in Golang
A school fair needs a welcome screen at the entrance. Print a greeting first. Seeing the exact words on screen confirms that the saved program ran and sent text to its output.
1. Save the following program as HelloWorld.go.
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
Hello World
2. Run go run HelloWorld.go.

Alternate way of executing the .go file
To keep the executable, run go build HelloWorld.go. On Windows, start it with .\HelloWorld.exe.
