go get命令

usage:

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

获取:

go get github.com/spf13/cobra
启用-v标记,可以看到下载的进度以及更多的调试信息

更新:

go get -u github.com/spf13/cobra