Go Decorator Pattern Guide: Pipelines & HTTP Middleware

Master Go’s decorator pattern with practical examples: function timing decorators, HTTP middleware chains, and pipeline processing. Learn to build reusable higher-order functions and explore generic decorators for clean, modular code architecture.

July 9, 2025 · 5 min · Garry Chen

Go Generics Guide: Type-Safe Programming & Data Structures

Comprehensive guide to Go generics: learn type parameters, constraints, and build generic data structures like stacks and linked lists. Explore functional programming patterns with generic Map, Reduce, and Filter operations for type-safe, reusable code.

July 7, 2025 · 9 min · Garry Chen

Go Functional Programming: Map, Reduce & Filter Patterns

Learn essential functional programming patterns in Go: Map, Reduce, and Filter operations for elegant data processing. Discover how to separate business logic from control logic with practical employee data examples and explore the path toward generic programming.

July 6, 2025 · 5 min · Garry Chen

Go Visitor Pattern: Learn from kubectl Implementation

Discover how Kubernetes kubectl implements the Visitor design pattern in Go using functional programming.

July 4, 2025 · 6 min · Garry Chen

Go Inversion of Control Guide: Struct Embedding & Design

Master Go’s Inversion of Control using struct embedding, polymorphism, and dependency inversion. Learn to separate control logic from business logic with practical examples including undo functionality and reusable design patterns.

July 2, 2025 · 6 min · Garry Chen