Avatar

Blog Posts

Thoughts on software development, programming languages, and technology.

Golang: Generics in Go

Go 1.18 introduced one of the most significant features in the language's history: generics. After years of debate and careful design, Go developers can now write type-safe, reusable code without sacrificing the language's simplicity and performance characteristics.

GoGenericsProgrammingType Safety

Understanding Interfaces in Go: The Secret Sauce of Polymorphism

Interfaces are one of Go's most powerful and elegant features. They enable polymorphism, promote loose coupling, and make code more testable and maintainable. Unlike many other languages, Go's interfaces are implicit, meaning types don't need to explicitly declare that they implement an interface.

GoInterfacesPolymorphismDesign Patterns

JSON and Struct Tags in Go: What Every Dev Should Know

Master JSON handling in Go with struct tags, custom marshaling, and advanced techniques. Learn best practices for building robust APIs and data processing applications with proper JSON serialization.

GoJSONStruct TagsAPI DevelopmentSerialization