Hi, I hope this isn’t an FAQ, but I wasn’t able to find any good documentation on golang.org, or elsewhere, on how to set this up, so I wrote a tutorial. I think it should be added to the core golang.org documentation on ‘go get’ and the import tool, as the infrastructure required doesn’t seem to be adequately documented anywhere.
The ‘go get’ tool is the official way to fetch 3rd-party packages from github.com and other ‘big’ code hosting sites. There are undocumented details about the HTTPS server and git web backend setup (plus details about domain entries and URI redirections) that are required for this to work transparently. I wanted to support ‘go get’ for packages from my own server, and have documented the setup required to do so here:
I hope this is informative for others.