Last weekend I converted my website (the one you’re looking at) to the Hugo Static Website Engine. If you don’t already know, a static website engine converts a directory structure of (usually) Markdown files to a set of HTML files that can be uploaded to a static web server like Surge.sh.
While Go does not have an official construct for generators, it is possible to use channels to achieve the same effect. Below is a function called
countthat generates numbers from
In my day job at Sendwithus, we’ve been having trouble writing performant concurrent systems in Python. We’ve come to the conclusion that Python just isn’t suitable for some of our high throughput tasks, so we’ve started playing around with Go as a potential replacement.