Full threadbetterwaytodoit·Here's a more idiomatic translation of the Python code to Go, and there's no surprise to how the code behaves:https://play.golang.org/p/rpqvVDR9v8View on HN