Replaced Go version with a version more similar to the other language
versions and without external dependencies.

I have not yet have time to test its performance against the old
version.