Glossary: Software Design Patterns in Go
Error value
Also written: error, errors.New, fmt.Errorf
Go's way to report an ordinary failure: a function returns an `error` as its last result, and the caller checks it. Go keeps `panic` for programmer mistakes.