Skip to content

Commit

Permalink
Add repository link to the package documentation
Browse files Browse the repository at this point in the history
jfontan committed May 8, 2024
1 parent 5d1b2e4 commit 8e72d0e
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ It also generates a stack trace when the error is created, so you can see where
```go
ErrExample := jerror.New("error")
err := ErrExample.New()
spew.Dump(err.Frames)
spew.Dump(err.Frames())
// ([]jerror.Frame) (len=3 cap=4) {
// (jerror.Frame) {
// Function: (string) (len=35) "github.com/jfontan/jerror.TestStack",
2 changes: 2 additions & 0 deletions jerror.go
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@ Package jerror is a helper to create errors. It supports creating parametrized
messages to give more information on the error and easier way of wrapping.
These errors are compatible with standard errors.Is and errors.Unwrap.
More information at http://github.com/jfontan/jerror
Example:
ErrCannotOpen := jerror.New("can not open file %s")

0 comments on commit 8e72d0e

Please sign in to comment.