We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 297d9e8 commit c5fe904Copy full SHA for c5fe904
1 file changed
errors.go
@@ -51,6 +51,18 @@
51
// type Stacktrace interface {
52
// Stacktrace() []Frame
53
// }
54
+//
55
+// The Frame type represents a call site in the stacktrace. Frame supports
56
+// the fmt.Formatter interface that can be used for printing information about
57
+// the stacktrace of this error. For example:
58
59
+// if err, ok := err.(Stacktrace); ok {
60
+// for _, f := range err.Stacktrace() {
61
+// fmt.Printf("%+s:%d", f)
62
+// }
63
64
65
+// See the documentation for Frame.Format for more details.
66
package errors
67
68
import (
0 commit comments