Short - A Go Link Shortner

Get it on github

This is a link shortener written in go, backed by redis written by @john_nye

The shortened hash is calculated by base62 encoding the number of links currently stored.

Use

There are 5 commandline options for short

Example Serving directly

short -h shortdoma.in -p 80 -b http://shortdoma.in/

Behind a proxy with a remote Redis box:

short -h localhost -p 12345 -b http://shrtdm.in -c 5 -r http://redis.myserver:999393

Create

POST request to the root URL with the following JSON {"url":"http://example.com"} the folowing response is sent to you

{
    "Original":"http://example.com",
    "Short":"A",
    "FullShort":"http://localhost:8080/A",
    "HitCount":0
}

TODO