A golang server for golang vanity import paths.

Joshua Hawxwell 56e8110796 Add go.mod 3 years ago
LICENSE 29da551705 Make host an actual argument; add README+LICENSE 7 years ago
README.md 29da551705 Make host an actual argument; add README+LICENSE 7 years ago
go.mod 56e8110796 Add go.mod 3 years ago
go.sum 56e8110796 Add go.mod 3 years ago
vanity.go b0e1edff89 Fix map based config 3 years ago
vanity_test.go b0e1edff89 Fix map based config 3 years ago

README.md

vanity

Server for golang vanity import paths.

$ go get hawx.me/code/vanity
$ cat vanity.conf
/example git git://github.com/example/example
/something/else git git://github.com/org/else
$ vanity my.cool.domain ./vanity.conf
...

Each configuration line is the data (minus host) that is returned in the meta tag, see go help importpath for more information. Any pages hit by humans redirect to godoc.org.

Prior art

  • gimpy, which uses DNS to get projects instead of a config file.