Miscellaneous go code.