Various Go utility code