common utils for golang