some utils for golang