Or actually even better example: http://godoc.org/github.com/Clever/mgotail, https://github.com/Clever/mgotail/blob/master/doc.go