Sahil Khaire·4h agoGo From Zero, Part 12: Building a REST API with the Standard LibraryEverything from the series in one place: a complete, tested JSON API with routing, validation, middleware, logging and graceful shutdown…
Sahil Khaire·4h agoGo From Zero, Part 11: Best Practices for Production-Ready GoThe idioms, tools and habits that turn Go code that works into Go code you can run, debug and maintain for years.
Sahil Khaire·4h agoGo From Zero, Part 10: Testing, Benchmarks, and FuzzingGo ships with everything you need to test your code. Here’s how to write tests people enjoy maintaining.
Sahil Khaire·4h agoGo From Zero, Part 9: Generics Without the HeadacheWrite a function once, use it with many types, and keep full type safety. Plus when not to use generics at all.
Sahil Khaire·1d agoGo From Zero, Part 8: sync, context, and Concurrency PatternsMutexes, WaitGroups, context cancellation, worker pools and pipelines: the concurrency toolkit you’ll use in real services.A response icon1A response icon1
Sahil Khaire·1d agoGo From Zero, Part 7: Goroutines, Channels, and selectGo’s most famous feature, explained with simple pictures and runnable examples: doing many things at once, safely.
Sahil Khaire·1d agoGo From Zero, Part 6: Packages, Modules, and Project LayoutHow to split Go code into packages, manage dependencies with modules, and lay out a project that stays tidy as it grows.
Sahil Khaire·1d agoGo From Zero, Part 5: Error Handling the Go WayNo exceptions, no try/catch. Just values you can inspect, wrap and handle on purpose. Here’s how to do it well.
Sahil Khaire·1d agoGo From Zero, Part 4: Methods, Interfaces, and CompositionGo has no classes and no inheritance. Here’s what it gives you instead, and why many people end up preferring it.
Sahil Khaire·1d agoGo From Zero, Part 3: Arrays, Slices, Maps, and StructsHow Go stores collections of data, how slices really work under the hood, and the traps to avoid.