Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App represents the appplication itself
func (*App) CreateShortURL ¶
func (a *App) CreateShortURL(w http.ResponseWriter, r *http.Request)
CreateShortURL will take a url and shorten it with an (custom) alias
func (*App) GetURL ¶
func (a *App) GetURL(w http.ResponseWriter, r *http.Request)
GetURL takes a shortlink and redirects the user to the relevant link if it exists
func (*App) Initialize ¶
Initialize initializes the app, connects to database, and does auto migration
Click to show internal directories.
Click to hide internal directories.