A pretty short post.
No longer will you have to deal with dependency issues because your project is not set in the gopath
. Now you can just run the following to make life much easier:
go mod init github.com/{User||Org}/{project name}
This will set up your project to easily use third-party modules. If you need a specific module just:
go get -u <module-name>
The above will also update your dependency if you needed that.
If you just cloned a project with go mod init
set, then you can just run
go mod download
As promised, done!