some handy utilities for golang