Common Go code.