How do I migrate from Dep to Go Modules
Migrating from Dep to Go Modules is very easy. Run go version and make sure you’re using Go version 1.11 or later. Move your code outside of GOPATH or set export GO111MODULE=on. go mod init [module path]: This will import dependencies from Gopkg.lock. go mod tidy: This will remove unnecessary imports, and add indirect ones. … Read more