Skip to content

mariano/goshorty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A URL shortener written in Go.

Lyrics by 50 Cent ;]

Go, shorty

It's your birthday

We gon' party like it's your birthday

We gon' sip Bacardi like it's your birthday

Requirements

Go, obviously :)

Some gorilla packages:

$ go get github.com/gorilla/mux

Redigo:

$ go get github.com/garyburd/redigo/redis

User agent parser:

$ go get github.com/mssola/user_agent

Go's implementation of Maxmind GeoIP API:

$ go get github.com/nranchev/go-libGeoIP

Download and extract MaxMind's GeoIP Country Database in binary format:

$ wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
$ gunzip GeoIP.dat.gz

Build & Run

$ go build
$ ./goshorty

About

A URL shortener in Go with Redis as the backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published