helper for writing web apps in Go using net/http