Golang Translation of c2go.py