Skip to content

Glossary: Go Basics

GOOS and GOARCH

Also written: GOOS, GOARCH

Settings for the operating system and processor family a build targets, e.g. `windows/amd64`. Set them before `go build` to cross-compile.

Where the book teaches it