Hello World in Go
Golang Tutorials
Go: Hello World
How to create your first program in Go?
To write your first program in Golang File hello.go
:
package main
import "fmt"
func main() {
fmt.Println("Hello Go")
}
How to Run a Go program?
To run any go file use go run ${file_name}
$ go run hello.go