$ dep dep is a tool for managing dependencies for Go projects
Usage: dep <command>
Commands:
init Initialize a new project with manifest and lock files status Report the status of the project's dependencies ensure Ensure a dependency is safely vendored in the project prune Prune the vendor tree of unused packages version Show the dep version information Examples: dep init set up a new project dep ensure install the project's dependencies dep ensure -update update the locked versions of all dependencies dep ensure -add github.com/pkg/errors add a dependency to the project
Use "dep help [command]"for more information about a command.
看起來可以先使用 init
$ dep init Using ^1.20.0 as constraint for direct dep github.com/urfave/cli Locking in v1.20.0 (cfb3883) for direct dep github.com/urfave/cli