Golang: Writing unit tests and isolating dependencies | Hacker News Reader