BJBarisere Jonathaninhumanlytyped.hashnode.dev·Jul 10, 2024 · 8 min readWriting Better Errors In GoIt is no secret that nobody loves Go's error handling. We pretend to love it, we tolerate it, but deep down we know that feeling. It is not the if err != nil that I'm interested in today; that is one editor snippet away. It is how much we lose in the...00
BJBarisere Jonathaninhumanlytyped.hashnode.dev·Jul 6, 2024 · 3 min readDocker Compose: Waiting for a ServiceDocker containers are now ubiquitous in web development workflows. I often use docker compose to run services that I need during development and in test environments. I often have to wait for a service running in a docker container to be ready before...00
BJBarisere Jonathaninhumanlytyped.hashnode.dev·Jun 18, 2024 · 4 min readLogging as a Cross-cutting Concern in GoIs it better to use a shared global logger and negotiate settings with every module, or to use private logger instances customised to taste? For most applications, logging is a cross-cutting concern. Logging is needed across the application, but the ...01I
BJBarisere Jonathaninhumanlytyped.hashnode.dev·Jun 15, 2024 · 7 min readUnderstanding Go's slog PackageGo's log/slog standard library package provides everything you need to get started with structured logging. It has been thoughtfully designed to support both library authors and program authors. The first article of this series was intended to show t...00
BJBarisere Jonathaninhumanlytyped.hashnode.dev·Jun 8, 2024 · 3 min readStructured Logging in Go: IntroductionGo 1.21 was released in August 2023 and brought several improvements, structured logging via the log/slog package being one. I had waited for this release and delayed a proposal at work in anticipation. Such was my joy at the release that I quickly d...00