Skip to content
masterclass Buddy

Go · Command

go get

In legacy GOPATH mode, go get downloads named packages and their dependencies, then installs the named packages. Flags can include test dependencies, update packages, show progress, or stop after downloading.

Last updated

Syntax

go get [-d] [-f] [-t] [-u] [-v] [-fix] [build flags] [packages]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • go build
  • go install
  • go clean
  • go help gopath
  • go help modules
  • go help module-get

Source: get package - cmd/go/internal/get - Go Packages. Checked 2026-11-03.