small utils in golang