smith-30 / go-goo.gl-parser

goo.gl url decoder by golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status GoDoc license

go-goo.gl-parser

ex.)

package main

import (
	"fmt"
	parser "github.com/smith-30/go-goo.gl-parser"
)

func main() {
	p := parser.NewParser("your api token")
	d, err := p.DecodeURL("https://goo.gl/kMxDaw")
	if err != nil {
		fmt.Printf("%v\n", err)
	}

	fmt.Println(d) // https://github.com/smith-30/go-goo.gl-parser
}

requirements

  • URL Shortener API's token
    Please get it from console.developers.google.com

License

go-goo.gl-parser is licensed under the the MIT license. Please see the LICENSE file for details.

About

goo.gl url decoder by golang

License:MIT License


Languages

Language:Go 100.0%