Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shortener ¶
type Shortener interface { // Shorten returns short link (example - otus.ru/some-long-link -> otus.ru/jhg34). // Also saves mapping short link to source link. Shorten(url string) string // Resolve returns source link or empty string if source link was not found. Resolve(url string) string }
func NewShortener ¶
func NewShortener() Shortener
Click to show internal directories.
Click to hide internal directories.