For example, this package import path is
go.mlcdf.fr/vanity-imports (instead of
- Painless to host: it's only static files
- Designed to be used in a CI environment: ship as single binary with no OS dependencies
- Easy to configure and extend via a single TOML configuration file
- From GitHub releases: download the binary corresponding to your OS and architecture.
- From source (make sure
$GOPATH/binis in your
go get go.mlcdf.fr/vanity-imports
Usage: vanity-imports [option] Options: --init creates a sample .vanity-imports.toml config file -c, --config CONFIG path to the config. Defaults to .vanity-imports.toml -V, --version print version
First, create a config file.
Generate the HTML pages
Upload the content of the
dist directory to your web server or your favorite static hosting service such as GitHub Pages, Netlify or Vercel.
Format for the
domain = "go.mlcdf.fr" # required output = "output" # default to dist repo_template = """<golang template>""" # override the default template for the repo page index_template = """<golang template>""" # override the default template for the index page [index] description = "" extra_head = "" # extra html tags appended to the head title = "" # required [repos] [repos."/dyndns"] # domain + "/dyndns will be your package import path repo = "https://github.com/mlcdf/dyndns/" # required. Url to the source repository
Clone the project
git clone https://github.com/mlcdf/vanity-imports.git
Go to the project directory
Generate the pages
go run .
View the output on your browser
cd dist python3 -m http.server 8000 # open your browser to localhost:8000
There is no documentation for this package.