web

package
v0.0.0-...-4d6a1d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 5 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBody

func GetBody(url string) ([]byte, error)

func GetJSON

func GetJSON(url string, v interface{}) error

func ShortenURL

func ShortenURL(url string) string

Types

type Short

type Short struct {
	URL struct {
		ID             string    `json:"id"`
		ShortURL       string    `json:"short_url"`
		LongURL        string    `json:"long_url"`
		ExpirationDate time.Time `json:"expiration_date"`
	} `json:"url"`
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL