/smolURL

a url shortener in go

Primary LanguageGo

smolURL

URL shortener in go

Features done

  • Takes a long url and returns a smol url (JSON format for request and response)
  • When the short url is used it will redirect to the original url
  • have used hash maps and for encoding I use the current length of the hash map and convert to a string of alphabets

How to run

  • On machine with go installed enter go run smolurl.go
  • server listens on port 8080
  • test api endpoints via postman