如何使“获得”获得传递依赖?

I have a go project in github at github.com/usmanismail/gpns which people can pull in using:

go get github.com/usmanismail/gpns

However, my project depends on a few other projects such as goconfig. How can I setup my project such that when people go get my project they will also get the required dependencies.

go get already gets all the dependencies:

Get downloads and installs the packages named by the import paths, along with their dependencies.

If you need more control consider vendoring your dependencies using a tool like godep.

If you are talking about test-dependencies, instead of go get, you could try go get -t github.com/usmanismail/gpns

If you are talking about binary dependencies, tools etc, I think you will have to tell the users that this is a requirement or provide a script that installs the dependencies automatically.

ref. https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies