go mod 有以下命令:

    命令 说明
    download download modules to local cache(下载依赖包)
    edit edit go.mod from tools or scripts(编辑go.mod)
    graph print module requirement graph (打印模块依赖图)
    verify initialize new module in current directory(在当前目录初始化mod)
    tidy add missing and remove unused modules(拉取缺少的模块,移除不用的模块)
    vendor make vendored copy of dependencies(将依赖复制到vendor下)
    verify verify dependencies have expected content (验证依赖是否正确)
    why explain why packages or modules are needed(解释为什么需要依赖)

    作者:若与
    链接:https://www.jianshu.com/p/760c97ff644c
    来源:简书
    著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

    https://www.cnblogs.com/failymao/p/15087946.html