Common and reusable go utility functions