Gopkg

gopkg is a Caddy plugin which simplifies vanity gopkg/go module names when using Caddy to serve a website.

Installation

If using xcaddy, the recommended option, it’s as simple as

xcaddy build \
        --with magnax.ca/caddy/gopkg

The custom caddy binary will include the plugin and be ready for use.

Usage

Within your Caddyfile, simply add gopkg directives for each vanity URL you want to setup.

magnax.ca {
    gopkg /caddy/gopkg https://github.com/MagnaXSoftware/gopkg
}