Some utility functions for golang