一个小型 HTTP 服务器,用于支持自定义 Golang 导入路径
sally is a small HTTP service you can host to serve vanity import paths for Go modules.
To build sally from source, use:
go install go.uber.org/sally@latestAlternatively, get a pre-built Docker image from https://github.com/uber-go/sally/pkgs/container/sally.
Create a YAML file with the following structure:
…Run sally like so:
$ sallyThis 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 5000You 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.
暂无开放 Issues,或尚未同步最近议题。