Hello World!

$ mkdir hello # Alternatively, clone it if it already exists in version control.
$ cd hello
$ go mod init example.com/user/hello
go: creating new go.mod: module example.com/user/hello
$ cat go.mod
module example.com/user/hello

go 1.14
$
main.go
package main

import "fmt"

func main() {
	fmt.Println("Hello, world.")
}

Last updated

Was this helpful?