Let’s get this started!

Like most developers I’ve used a significant amount of open source libraries in the past across all technologies from Go to Javascript. It’s time to give a little back.

I recently spun up the Hexosoft site and as part of this needed a simple mechanism to ensure that I didn’t get spammed by bots that accessed the form on the homepage. The site’s backend is very small, just handling this one concern and integrating with mailgun to get the message to me.

At first the throttling code was just sat there in main alongside the request handler, but that was missing an opportunity to share the code, so I spun up a new repo github.com/hexoscott/goutils to house this and imported it back to the website. A little bit of tidying and exposing structs/methods later and it was ready to share.

For now it’s a tiny codebase but I plan to grow this over time. There are useful little things that I’ve personally found myself copying between codebases that make sense to me to live in a central place, at least for the code I’m writing, and if you find any of that useful then that’s a great bonus too.