Utility functions for Go.