Link Search Menu Expand Document

go get

Add a dependency package, or download packages in legacy GOPATH mode. More information:

  • Add a specified package to go.mod in module-mode or install the package in GOPATH-mode:

go get {{}}

  • Modify the package with a given version in module-aware mode:

go get {{}}@{{v1.2.3}}

  • Remove a specified package:

go get {{}}@{{none}}