Skip to content

Repository files navigation

vanity

Go vanity server

Build Status Go Report Card Documentation codecov License GitHub tag (latest SemVer)

Concepts1

  • VCS is Version Control System (such as 'git')
  • Repo root is the root path the source code repository (such as 'https://github.com/livetribe')
  • Domain is the internet address where the Go Vanity server is hosted (such as m4o.io or l7e.io). Domain is deduced from HTTP request.
  • Path is the path component of the Go package (such as /cmd/tcpproxy in kkn.fi/cmd/tcpproxy)

Features

  • Redirects browsers to pkg.go.dev, configurable to godoc.org
  • Redirects Go tool to VCS
  • Redirects HTTP to HTTPS
  • Configurable log/slog logger. The handler takes the logger from the request context, and falls back to slog.Default(). The vanity command writes Cloud Logging structured JSON to stderr, at the level that --log-level sets.

Installation

go get l7e.io/vanity

Specification


1: Inspired by kkn.fi/vanity.

About

Golang vanity server

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages