ungo

package module
v0.0.0-...-1c5fc65 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 2 Imported by: 0

README

Ungo

Ungo is a package that has the function of unshorten urls.

How to install

You should run the following commands:
go get github.com/ReiGelado/Ungo and go install github.com/ReiGelado/Ungo
There, you can now use :)

Shorteners

The available shorteners are:
1bebiz ---> http://1be.biz

1tinynet ---> http://1tiny.net

ad2links ---> https://ad2links.com

ad7biz ---> http://ad7.biz

adfly ---> http://adf.ly

adfocus ---> http://adfoc.us

amankanlink --> http://kombatch.amankan.link

coegin ---> http://coeg.in

comicon ---> http://comicon.com.br

freeanimeonline ---> http://freeanimeonline.xyz

gadget14 ---> http://gadget14.pw

googl ---> http://goo.gl

gtaind ---> http://i.gtaind.com

hrefli ---> http://href.li

imgfiles ---> http://imgfiles.org

imagebam ---> http://imagebam.com

img3x ---> http://img3x.com

imagecurl ---> http://imgcurl.com

imagep2p ---> http://imagep2p.com

linkbucks ---> http://linkbucks.com/

linkshrink ---> http://linkshrink.net/

linktl ---> http://link.tl

motonewsclub ---> http://motonews.club

picnictrans ---> http://www.picnictrans.com/

playimg ---> http://playimg.com

ppw ---> http://p.pw

shst ---> http://sh.st

shtio ---> http://sht.io

shortenid ---> http://shorten.id

smllio ---> http://smll.io

tco ---> http://t.co

urlgogs ---> http://urlgo.gs

voyeurimage ---> http://voyeurimage.org

Example

A simple example of how to use the library :)

package main

import (
	"fmt"
	"github.com/ReiGelado/Ungo"
)

func main() {
	url, err := ungo.Shorten(ungo.Config{Url: "http://adf.ly/tYjLr", Shortener:"adfly"})
	if err != nil {
		panic(err)
	}
	fmt.Println(url)
}

License

Ungo is under the MIT license. You can read the full terms here: MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shorten

func Shorten(info Config) (string, error)

Types

type Config

type Config struct {
	Url       string
	Shortener string
}

type Decoded

type Decoded struct {
	UrlDecoded string
	UrlError   error
}

Directories

Path Synopsis
www.freeanimeonline.xyz/top-tips-health-insurance-need-know/?site=aHR0cDovL3d3dy5zb2xpZGZpbGVzLmNvbS9kL2JjNjA0ZmI3MjMv&c=0&user=41748 http://gadget14.pw/compare-ability-xiaomi-mi-5-vs-iphone-6s/?d=aHR0cDovL3d3dzY3LnppcHB5c2hhcmUuY29tL3YvOFJKUm9hR2QvZmlsZS5odG1s#landing imgContinue=Continue%20to%20image%20...%20 imgContinue=Continue%20to%20image%20...%20
www.freeanimeonline.xyz/top-tips-health-insurance-need-know/?site=aHR0cDovL3d3dy5zb2xpZGZpbGVzLmNvbS9kL2JjNjA0ZmI3MjMv&c=0&user=41748 http://gadget14.pw/compare-ability-xiaomi-mi-5-vs-iphone-6s/?d=aHR0cDovL3d3dzY3LnppcHB5c2hhcmUuY29tL3YvOFJKUm9hR2QvZmlsZS5odG1s#landing imgContinue=Continue%20to%20image%20...%20 imgContinue=Continue%20to%20image%20...%20

Jump to

Keyboard shortcuts

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