Standard Library Packages, Functions & Ready-to-Run Code Examples
Part of The Direct Path to Linux Ubuntu
— free for all students and developers.
Goroutines and channels make concurrent programming simple and safe — no threads, no locks needed for most use cases.
Go compiles to a single static binary with no runtime dependencies — deploy anywhere with go build.
Docker, Kubernetes, Terraform, and GitHub CLI are all written in Go. The net/http package is production-ready out of the box.
Go compiles millions of lines in seconds. Simple syntax, strong typing, and built-in formatting with gofmt.
Every Go program needs a main package and func main():
go run main.go # run directly (no binary produced) go build -o myapp main.go # compile to binary named myapp go build ./... # build all packages in project go test ./... # run all tests go fmt ./... # format all Go source files go mod init myproject # initialize Go module (go.mod) go get github.com/some/pkg # add external dependency go vet ./... # run static analysis ./myapp # run compiled binary