Skip to content

EasyConceptGo and general-purpose languages

How does Go handle errors?

What a good answer covers

Functions return an error value as the last result and callers check it explicitly. Errors can be wrapped with fmt.Errorf and %w and inspected with errors.Is and errors.As.

More on Go and general-purpose languages

Flashcards for this topic