Some common utility functions for Go.