Various Go utility functions