Some useful lib function written in Go