Some golang utility functions