Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _posts/2020-11-09-golang-style-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ decide what to do with it, all the way up to the very entrypoint of the app (or
You should almost NEVER use `panic`.

Use custom error types. Create your own types that implement the `error` interface so that error messages are clear
and have well-defined types you can check against. For some examples of this, see e.g. the custom erros in the
and have well-defined types you can check against. For some examples of this, see e.g. the custom errors in the
https://github.com/gruntwork-io/terratest/blob/master/modules/aws/errors.go[aws] package of `terratest`.

Include stack traces. In most of our code, we have to wrap errors with
Expand Down