withtimeout withtimeout provides a Golang package that allows adding a timeout to any operation. To install: go get github.com/getlantern/withtimeout For docs: godoc github.com/getlantern/withtimeout