first pass at the go version. Not successful yet.