web

package
v0.0.0-...-5f3cdcf Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 5 Imported by: 0

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