code for https://github.com/codegangsta/web-development-in-go