Miscellaneous Go code