A few go utility functions I found useful