Utility functions for Golang