Vangen is a tool for generating static HTML for Go vanity import paths.
Go vanity import paths work by serving a HTML file that tells the go get tool where to download the source from. You can still host the source code at Github, BitBucket, but the vanity URL gives you portability and other benefits.
Maintain Go vanity import paths with a simple definition file vangen.json.
Host Go vanity import paths using static hosting. No need for Google AppEngine, Heroku, etc. Host the files on Github Pages, AWS S3, Google Cloud Storage, etc.
Host the files outputted in vangen/ at your domain
Try it out with go get [domain]/[package]
$ vangen -help
Vangen is a tool for generating static HTML for hosting Go repositories at a vanity import path.
vangen [-config=vangen.json] [-out=vangen/]
vangen json configuration filename (default "vangen.json")
print this help list
output directory that static files will be written to (default "vangen/")
print verbose output when run
print program version
The repository type and source properties will be set automatically when url begins with https://github.com or https://gitlab.com. Below is a minimal config for a project hosted on GitHub.