Skip to content
A URL shortener in Go
Branch: serverless
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

A URL shortener in Go

Build Status

4pres is yet another URL shortener, it will give you a short link for a long URL. Short links have no expiration, for now :D, you can get short URL via any browser or other HTTP client.

4pres is written in Go and leverages a serverless architecture powered by AWS and coded with eawsy. It uses Google SafeBrowsing to validate the request URL is not from a malicious domain, so to prevent malware spread.

API mapping

  • GET / returns the home page
  • GET /s?URLENCODEDLINKTOSHORTEN get you a HTTP200 with the HTML containing the short URL
  • GET /ANYURL get you a HTTP301 redirecting to the original lonh URL or a HTTP404.
You can’t perform that action at this time.