Skip to content

Glossary: Go Basics

Error

Also written: errors, error value, error message

A value of the built-in `error` type that describes what went wrong, or `nil` if nothing did. A function that can fail returns one as its last result, and you check it with `if err != nil`.

Where the book teaches it

Related terms

nil