hash to golang, preliminary