Fading Coder

An Old Coder’s Final Dance

Go Context: Principles, Patterns, and Internal Mechanics

The context package became part of Go’s standadr library in Go 1.7 after being used extensively inside Google. It provides a unified way to coordinate cancellation, deadlines, and request-scoped values across API boundaries and goroutines. Motivation Common scenarios where context is essential: Set...

Benchmarking High-Performance Go Web Frameworks with an Empty HTTP Handler

This benchmark compares several popular Go web frameworks using a minimal HTTP endpoint that returns an empty body. The goal is to focus on scheduling and request handling overhead rather than protocol parsing or payload processing. For reference, a custom C++ network server is included as a baselin...