sally
sally is a small HTTP service you can host
to serve vanity import paths for Go modules.
Installation
To build sally from source, use:
go install go.uber.org/sally@latest
Alternatively, get a pre-built Docker image from
https://github.com/uber-go/sally/pkgs/container/sally.
Usage
Create a YAML file with the following structure:
godoc:
host: pkg.go.dev
url: go.uber.org
packages:
zap:
repo: github.com/uber-go/zap
description: A fast, structured-logging library.
url: example.com
Run sally like so:
$ sally
This will read from sally.yaml and serve on port 8080.
To use a different port and/or configuration file,
use the -yml and -port flags.
$ sally -yml site.yaml -port 5000
Custom Templates
You can provide your own custom templates. For this, create a directory with .html
templates and provide it via the -templates flag. You only need to provide the
templates you want to override. See templates for the available
templates.