Common utilities in Go