Documentation ¶
Overview ¶
Package shortlink is a very simple link shortener.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DbFile = "links.db"
DbFile is the filename of the bolt db file
View Source
var URIPrefix = "/s"
URIPrefix is the prefix for the router
Functions ¶
func AddRoute ¶
AddRoute adds the redirect route to a mux router. The logic here is that just the id is part of the url after the URIPrefix
Types ¶
Click to show internal directories.
Click to hide internal directories.