Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoogleShorten ¶
GoogleShorten as string type, so we can put our target url in construction method
func (*GoogleShorten) NewGoogleShorten ¶
func (gs *GoogleShorten) NewGoogleShorten(key, target, version string) GoogleShorten
NewGoogleShorten acts as constructor to create initial values
func (*GoogleShorten) ShortIt ¶
func (gs *GoogleShorten) ShortIt() error
ShortIt create shorten url send request to google api
func (*GoogleShorten) String ¶
func (gs *GoogleShorten) String() string
String used return the value put in the construction type
Click to show internal directories.
Click to hide internal directories.