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

Go Programming Patterns: Slices, Interfaces & Performance

Essential Go programming patterns including slice memory management, interface design, time handling, and performance optimization techniques for better Go applications.

June 28, 2025 · 6 min · Garry Chen

Go Network Programming: How Epoll Powers Performance

Exploring how Go combines the simplicity of synchronous programming with the efficiency of epoll-based asynchronous I/O for high-performance network programming.

June 13, 2025 · 15 min · Garry Chen