Cyril David·Nov 28, 2020building http based clientsWhen I came from the very dynamic world of ruby, my first approach to designing HTTP clients in go was to think about mocking similar to…
Cyril David·Nov 21, 2020Using the net/http package in goWhen I started picking up the go language years ago, things that stood out to me immediately were the io and net/http packages. Both of…
Cyril David·Nov 14, 2020Dependency Injection in GoWhen I mention dependency injection to folks who have Java or .NET backgrounds it usually invokes a few sets of questions — to which my…
Cyril David·Mar 27, 2020atomically closing termination channels in GoOne of the most prevalent patterns when managing the lifecycle of goroutines in Go is to have a done channel. Here’s a quick example…