Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit 9a4f977

Browse files
committed
document extended format
1 parent 7896481 commit 9a4f977

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

errors.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@
4343
// // unknown error
4444
// }
4545
//
46+
// Formatted printing of errors
47+
//
48+
// All error values returned from this package implement fmt.Formatter and can
49+
// be formatted by the fmt package. The following verbs are supported
50+
//
51+
// %s print the error. If the error has a Cause it will be
52+
// printed recursively
53+
// %v see %s
54+
// %+v extended format. Each Frame of the error's Stacktrace will
55+
// be printed in detail.
56+
//
4657
// Retrieving the stack trace of an error or wrapper
4758
//
4859
// New, Errorf, Wrap, and Wrapf record a stack trace at the point they are

0 commit comments

Comments
 (0)