Follow the latest coverage, related explainers and connected technology stories.
The JetBrains guide explains Go’s philosophy of handling errors as values returned within the normal execution path, and reviews techniques for returning, wrapping, inspecting, joining, and recovering from errors. It also specifies when panic and recover should be used, and how to avoid ignoring errors or losing their context as they pass between functions.