Reflecting on Go Reflection — Truly a reflective opinion piece, and probably a divisive one too. As a programmer who chooses to use “the most mundane features” of any language, Go’s reflect package wasn’t on Neil’s list of things to try, but he “fell into the reflection pool” and.. he’s still not a fan.
Neil Macneale
|
Elevate Your Backend Skills — Whether it's Python, Go, TypeScript, or AWS, you can gain fundamental knowledge across multiple programming languages, expanding your skillset via our growing range of learning paths and expert-led video courses.
Frontend Masters sponsor
|
sync.Map : The Right Tool for the Right Job — The latest in Phuong’s popular, illustrated guide to concurrency options in Go digs into sync.Map , a concurrency-safe map for reading and writing across multiple goroutines without requiring explicit locks. It’s not always the perfect choice, though, as he discovers.
Phuong Le
|
Writing a Circuit Breaker in Go — When you need a mechanism to stop a failing operation being tried over and over, a circuit breaker provides a graceful way to detect failures and recover from them with a cooldown period.
Redowan Delowar
|
Using Go Embed — The go:embed directive, around since Go 1.16, allows you to embed static files into your binary. But did you know that you can embed entire directories or files into a struct?
Matt Boyle
|
Kamal 2: Thou Need Not PaaS — Kamal is a container-based deployment tool from 37Signals, best known for their work on Ruby on Rails. It’s language agnostic though, and ▶️ the screencast demo shows off deploying a simple Go app quickly, before moving on to a Ruby example. Certainly a viable new deployment option for Go apps on self-managed servers.
David Heinemeier Hansson
|
Sidekick: Bare Metal to Production Ready in Minutes — I haven’t tried this yet, but am itching to do so ASAP. Sidekick aims to give you a Fly.io-style single command deployment process out of the box for any VPS you have to hand. Inspired by Kamal (above) but is written in Go.
Mahmoud Mousa
|
Hookdeck: Stripe-level DX for all your webhooks.
Learn how to build fine-grained authorization for your Go application using open-source software, directly from the founders and team behind SpiceDB.
|
|
|