The 10 Go Error Handling Commandments
Thou shalt handle errors with care: ten tips for wrapping, translating, and returning them without turning every failure into noise.
Thou shalt handle errors with care: ten tips for wrapping, translating, and returning them without turning every failure into noise.
If we’re all going to google it anyway, we might as well google something that makes sense.
Choosing consistency over performance.
A simple pattern that will help you reduce error handling, while keeping your Go code simple and idiomatic.
My struggle to choose the right type semantic and keep code consistent at the same time.
Did Google reinvent both EJBs and Spring in Go?
While Go doesn’t have proper enums, you can create a more robust enum-like construct using interfaces and structs.
sqlc is a fantastic time and boilerplate saver, but is not a one-size-fits-all solution. Here are a few drawbacks I think people should be aware of.
When you just want to implement one or two methods … but be careful.
A bit of up-front thinking can help make our Go code cleaner and more performant.
No results found.
Type to search...
Stay connected — pick your platform: