三分钟掌握Go mod常用与高级操作

使用go module之后,go get 拉取依赖的方式就发生了变化下载项目依赖go get ./...拉取最新的版本(优先择取 taggo get golang.org/x/text@lates拉取 master 分支的最新 commigo get golang.org/x/text@maste拉取 tag 为 v0.3.2 的 commigo get golang.org/x/text@v0.3.拉取 hash 为 342b231 的 commit,最终会被转换为 v0.3.2go get golang.org/x/text@342b2指定版本拉取,拉取v3版本go get github.com/smartwalle/alipay/v Read More

Using Go Module

IntroductioThis post is part 1 in a series.Part 1 — Using Go Modules(this post)Part 2 —Migrating To Go ModulesPart 3 —Publishing Go ModulesPart 4 —Go Modules: v2 and BeyonGo 1.11 and 1.12 include preliminarysupport for modules, Go’snew dependency management systemthat makes dependency version information explicit and easier to manage. This blog post is an introduction to the basic operations nee... Read More