vanity: github.com/nf/vanity Files | Directories

Command vanity

Command vanity is a web server that serves go-import meta redirects for vanity domains. See "go help importpath" for details.

Vanity reads TXT records for the requested domain to determine the redirect target. For example, if you wish to use example.org as the base of your import path, create an A record that points to a vanity server:

example.org.	A	108.59.82.123

Then add a TXT record for each repository that you wish to map:

example.org.	TXT	"go-import example.org/foo git https://github.com/example/foo"
example.org.	TXT	"go-import example.org/bar hg https://code.google.com/p/bar"

(The author runs a public vanity instance at 108.59.82.123 that you may use for your own redirects. It comes with no SLA, so use at your own risk.)

Written by Andrew Gerrand <adg@golang.org>

Package Files

vanity.go

Directories

PathSynopsis
internal/dnsPackage dns implements a full featured interface to the Domain Name System.
internal/letscloudPackage letscloud provides a mechanism for caching letsencrypt data in Google Cloud Storage.

Package main imports 14 packages (graph). Updated 2016-07-18. Refresh now. Tools for package owners.