Skip to content
Open
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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ Terrors is built and used at [Monzo](https://monzo.com/).

## Usage

Terrors can be used to wrap any object that satisfies the error interface:
Terrors can be used to add context to an existing error that satisfies the error interface:


```go
terr := terrors.Wrap(err, map[string]string{"context": "my_context"})
terr := terrors.Augment(err, "Message", map[string]string{"context": "my_context"})
```
Terrors can be instantiated directly:

Expand Down