Go Functional Use Cases

I like functions, especially higher-order ones and I think we often underestimate their power when working with Go. More often than not, we jump to creating a type and attaching a method to it when maybe a simple regular or higher-order function would do (standard library surely, makes use of this eg. http.HandlerFunc). I employ this approach often and I figured it wouldn’t hurt to share it. Where does this come from?...

July 7, 2022 · 4 min

Hexagonal Architecture in Go

Hexagonal / Ports and Adapters architecture in insert your language here How many of these have you seen before? Probably too many, but I promise, this will be a short one… Why another article? First, I have a confession to make. I have had this article in my backlog for at least four years now but have never “gotten around” to finishing it due to numerous reasons (the biggest one me simply being lazy)....

May 29, 2022 · 4 min