Update a dependency to the latest version.
Section: Dependency Updates
Upgrade dependency
bash
bash
go get example.com/lib@latestExplanation
Update a dependency to the latest version. Useful in Go CLI workflows.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Dependency Updates