We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5b220e commit 297d9e8Copy full SHA for 297d9e8
1 file changed
README.md
@@ -30,9 +30,11 @@ type Stacktrace interface {
30
```
31
The `Frame` type represents a call site in the stacktrace.
32
`Frame` supports the `fmt.Formatter` interface that can be used for printing information about the stacktrace of this error. For example
33
-```
+```go
34
if err, ok := err.(Stacktrace); ok {
35
- fmt.Printf("%+s:%d", err.Stacktrace())
+ for _, f := range err.Stacktrace() {
36
+ fmt.Printf("%+s:%d", f)
37
+ }
38
}
39
40
See [the documentation for `Frame.Format`](https://godoc.org/github.com/pkg/errors#Frame_Format) for more details.
0 commit comments