Golang

2023 Aug 22

Logging in Go

Best practices, Logging levels, structured logging, Logging & Telemetry (Metrics, Tracing), Audit logs

2023 May 11

Handling panics from goroutines you've spawned

It’s one thing to handle a panic that’s occured within a function. It’s an entirely different affair to handle a panic that occured within a goroutine that’s been spawned.

2020 Jun 29

Go data-structure tricks: google/Btree

A couple of interesting approaches to concurrency and memory allocation from the Go google/btree package

2020 Jan 21

Go Channels Suffice for Synchronization

Or how to implement Futures/Promises in Go without having to juggle locks and waitgroups

2019 Dec 20

Golang Custom Loggers: using Postgres and Leveldb

Coupling logging to the some destination (in this case Postgres and leveldb) within the application itself isn’t by any means a good idea. Still, given the flexibility interfaces in Go provide, why not give it a try ¯\(ツ)