Versions in this module Expand all Collapse all v0 v0.0.1 Jun 11, 2021 Changes in this version + type FileURLMap struct + func NewFileURLMap(filePath string, urlLength uint) (*FileURLMap, error) + func (urlmap *FileURLMap) DelURL(shortURL string) bool + func (urlmap *FileURLMap) GetLongURL(shortURL string) (string, bool) + func (urlmap *FileURLMap) GetShortURL(longURL string) (string, bool) + func (urlmap *FileURLMap) PutURL(longURL string) (string, bool) + type URLConverter interface + DelURL func(string) bool + GetLongURL func(string) (string, bool) + GetShortURL func(string) (string, bool) + PutURL func(string) (string, bool) + type URLMap struct + func NewURLMap(urlLength uint) *URLMap + func (urlmap *URLMap) DelURL(shortURL string) bool + func (urlmap *URLMap) GetLongURL(shortURL string) (string, bool) + func (urlmap *URLMap) GetShortURL(shortURL string) (string, bool) + func (urlmap *URLMap) PutURL(longURL string) (string, bool)