Building REST APIs with Go and Gin
Introduction Go is an excellent choice for building REST APIs. Combined with the Gin framework, you can create fast, maintainable, and scalable web services. In this post, I'll walk through building...
Introduction Go is an excellent choice for building REST APIs. Combined with the Gin framework, you can create fast, maintainable, and scalable web services. In this post, I'll walk through building...
What Are Goroutines? A goroutine is a lightweight thread managed by the Go runtime. They're cheap to create — you can spawn thousands of them without breaking a sweat. Just prefix any function call...
The Database That Surprised Me For years, I used PostgreSQL for every project by default. It's powerful, reliable, and battle-tested. But recently, I made a surprising switch — and I'm not going...
The Problem with Docker Images A typical Go application compiles to a 10MB binary. But a naive Docker image can easily balloon to 800MB+ because it includes the entire Go toolchain and build...
Why Generics? Without generics, you write code like this: typescript function getFirstarr: any: any { return arr0; } const num = getFirst1, 2, 3; // type is 'any' — we lost information! We know it...