isgdnix

package
v0.0.0-...-ff2d948 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package isgdnix implements a is.gd client for: - shortening a long url - lookup for the original url by a shortened url.

The API used from is.gd: https://is.gd/developers.php

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(urlp string) (string, error)

Lookup calls is.gd lookup long url by using the shortned url. Example: http://is.gd/forward.php?format=simple&shorturl=http://is.gd/R709K6 OK: http://golang.org

func Short

func Short(urlp string) (string, error)

Short calls is.gd shortening by using a long url Example: http://is.gd/create.php?format=simple&url=www.example.com OK: http://is.gd/WcFNeL

Types

This section is empty.

Jump to

Keyboard shortcuts

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