We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d653ce commit d8edf98Copy full SHA for d8edf98
README.md
@@ -98,7 +98,16 @@ func main() {
98
// - err2 overwrites err1 source location to correctly show the location where err2 was executed
99
err2 := errors.M(err1, errors.WithMeta("key2", "val2"))
100
101
- fmt.Printf("%+v", errors.PrettyPrint(err2))
+ fmt.Printf("%+v", errors.PrettyPrint(err2)) // PrettyPrint should only be used in development to have a nicer output
102
+ /*
103
+ output:
104
+
105
+ this is an error
106
+ |- Source : /goprograms/errors/example_test.go:20
107
+ |- Meta :
108
+ |- key1 : val1
109
+ |- key2 : val2
110
+ */
111
}
112
```
113
0 commit comments