A url shortener created using go
- Simplistic
Uses only Go stdlibGo-redis for redis interaction- Only alphanumerics(_ inclusive) and - available as slug
- Peristent storage with redis(as only simple key value pair is required at the moment)
- Add at GET / route as a simple web frontend to the api
POST /
to create a new shortened urlwith body
{"url": "your url", "slug": "your desired slug"}
GET /{slug}
redirect to the original urlDELETE /{slug}
removes the short url
Note: Credits to Samrid Pandit and do check out his superior python implementation at shotcut