Zest.

Go: Hello world

A short, tested Go example for hello world. Copy it and adjust the names and paths for your project.

Go
package main

import "fmt"

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

Run with: go run main.go

Find it in Zest

Search for “go hello world” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More Go examples

All Go examples