Go theorytheory 0/50 · 0%
Toolchain · easy

1. Go Toolchain and Modules

go mod, go run, go build.

A Go project is a module created with `go mod init`. The toolchain is one binary: `go run` compiles and executes, `go build` produces a static binary, `go test` runs tests, and `go vet` catches suspicious code. Dependencies are pinned in go.mod and verified through go.sum.

Check your understanding

  1. 1. Which file pins dependency versions?

  2. 2. Go binaries are typically…