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
}
- URL Shortener API's token
Please get it from console.developers.google.com
go-goo.gl-parser is licensed under the the MIT license. Please see the LICENSE file for details.