random useful go functions