Port python version script to golang.