Utility functions that I find useful to write in Go