vanity

command module
v0.0.0-...-40f78f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2017 License: ISC Imports: 10 Imported by: 0

README

vanity: static redirect generator for custom import paths

This tool generates static HTML files for Golang projects hosted under custom import paths.

Documentation is at: https://whitehouse.id.au/vanity

Example

To regenerate the index files that support this tool:

$ go get whitehouse.id.au/vanity
$ go list whitehouse.id.au/... | vanity -replace example.com=github.com/danielwhite -o .

The following directory structure would be created under the working directory:

whitehouse.id.au/
  vanity/
    index.html

Documentation

Overview

vanity: static vanity index generator for S3

See -help for usage information.

Example

The following generates a listing for an entire vanity domain, "vanity.example.com" where the source code is hosted under a specific GitHub user:

go list vanity.example.com/... | \
  vanity -replace vanity.example.com=github.com/actual-user -o .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL