l7e.io/vanity/pkg/toml (go): Package toml provides an R/O, in-memory, TOML-initialized, implementation of Backend.  This in-memory backend is an R/O implementation of vanity.Backend which is initialized using TOML, https://github.com/toml-lang/toml.  The vanity URL configurations are stored in-memory.  Vanity entries are specified via an array of tables, https://github.com/toml-lang/toml#array-of-tables. Each table has the following keys:  * importPath - the vanity URL, e.g. "l7e.io/vanity"  * vcs - the version control system, e.g. "git"  * vcsPath - the actual root of the version control system pointed to by the import path  The vanity entry for this project could be  Here, the table name is "entry" and is specified using the InTable option.  The TOML configuration can be passed in during construction by passing in the appropriate option to the NewTOMLBackend method to specify file, Reader, string, or byte array content. Specifying multiple content, e.g. both a file and string results in undefined behavior.  To create a backend instance:  Remember to close the backend instance after use.
Keywords: go|golang|vanity|vanity-url