Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewShorten ¶
NewShorten is the type used to input your urls to short using: NewShorten{customize}.Shorten()
func (*NewShorten) Shorten ¶
func (n *NewShorten) Shorten() (*url.URL, error)
Shorten recieves your customHost and applies to the url to be returned By default It uses tokenGenerator to generate your url tokens so you can insert It on your DB, but If you change the Token's name It'll use hashGenerator (If you wish to search for It on your DB and prevent doubled links)
Click to show internal directories.
Click to hide internal directories.