Documentation ¶
Overview ¶
package shortner generates short url based on target url and given params
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestedLongerThanGeneratedError ¶
type RequestedLongerThanGeneratedError struct{}
func (*RequestedLongerThanGeneratedError) Error ¶
func (e *RequestedLongerThanGeneratedError) Error() string
type ShortUrlGenerator ¶
type ShortUrlGenerator struct {
// contains filtered or unexported fields
}
func NewShortUrlGenerator ¶
func NewShortUrlGenerator(pattern string) (*ShortUrlGenerator, error)
type Shortner ¶
func NewShortner ¶
func (Shortner) IsValidShort ¶
Click to show internal directories.
Click to hide internal directories.