Golang rewrite of https://github.com/pearkes/tugboat