tools

package
v0.0.0-...-22561de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2020 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDestURL

func GetDestURL(shortURL string, db *types.DB) (string, string)

This returns destination url

func GetShortURL

func GetShortURL(r *http.Request, destURL string, db *types.DB) (string, string)

This returns short url

func ValidateURL

func ValidateURL(destURL string) string

This returns validated destination url

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL