DEV Community

Cover image for Error Handling in Go
Donald Feury
Donald Feury

Posted on • Edited on • Originally published at donaldfeury.xyz

1 1

Error Handling in Go

Error handling in Go is pretty straight forward. There are no exceptions, there are no try catch blocks, there is only ERROR.

Error is a type like any other primitive built into the language, like a int or a string. This makes error handling, while a tad verbose, very straight forward and easy to understand.

Check it out and let me know what ya'll think. Any feedback is greatly appreciated.

If you liked it and want to know when I post more, be sure to subscribe and thank ya'll again for your time!

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more