Some helper functions for go.