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)
-
Notifications
You must be signed in to change notification settings - Fork 0
Golang library for the open-source link shortener Polr
License
Seklfreak/polr-go
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Golang library for the open-source link shortener Polr
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published