Useful utility functions for Go.