Common Go utility functions and data structures