client, err = polr.New("https://demo.polr.me/api/", "api-key", nil)
if err != nil {
panic(err)
}
shortUrl, err := client.Shorten("https://example.org", "", "")
if err != nil {
panic(err)
}
fmt.Println("Short URL:", shortUrl)Seklfreak/polr-go
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|