Build and run a Go program
Use go run and go build, create a go.mod file, check code with go fmt and go vet, cross-compile for other systems, and install programs with go install.
Use go run and go build, create a go.mod file, check code with go fmt and go vet, cross-compile for other systems, and install programs with go install.
What Go is, why it’s worth learning, and your first Go program explained line by line, including what a compile error looks like.