Go utility code