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

Go Functional Options Pattern Guide: Clean API Design

Learn the popular Functional Options pattern in Go for building clean, configurable APIs that are easy to use, maintain, and extend without complex constructors or configuration structs.

June 30, 2025 · 4 min · Garry Chen

Go Error Handling: Modern Patterns & Best Practices

Go error handling patterns including modern error wrapping, sentinel errors, resource cleanup with defer, and techniques to avoid ‘if err != nil’ hell.

June 29, 2025 · 9 min · Garry Chen