isgdnix

module
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

README

isgdnix

A library to is.gd API written in Go.

Installation

  • isgd library:
$ go get github.com/0x7cc/isgdnix/pkg/isgdnix
  • isgd command utility:
$ go get github.com/0x7cc/isgdnix/cmd/isgdcmd

Usage

  • isgd library:
package main

import (
		"fmt"

		isgd "github.com/0x7cc/isgdnix/pkg/isgdnix"
)

func main() {
		resp, err := isgd.Short("http://golang.org")
		if err != nil {
				panic(err)
		}

		fmt.Printf("%s", resp)
}
  • isgd command utility:
$ isgdcmd short http://golang.org
$ http://is.gd/WcFNeL
$
$
$ isgdcmd lookup http://is.gd/WcFNel
$ http://golang.org

References

License

Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Directories

Path Synopsis
cmd
isgdcmd
The isgdcmd short and lookup urls from is.gd.
The isgdcmd short and lookup urls from is.gd.
pkg
isgdnix
Package isgdnix implements a is.gd client for: - shortening a long url - lookup for the original url by a shortened url.
Package isgdnix implements a is.gd client for: - shortening a long url - lookup for the original url by a shortened url.

Jump to

Keyboard shortcuts

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