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

Commit

Permalink
document extended format
Browse files Browse the repository at this point in the history
  • Loading branch information
davecheney committed Jun 11, 2016
1 parent 7896481 commit 9a4f977
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@
// // unknown error
// }
//
// Formatted printing of errors
//
// All error values returned from this package implement fmt.Formatter and can
// be formatted by the fmt package. The following verbs are supported
//
// %s print the error. If the error has a Cause it will be
// printed recursively
// %v see %s
// %+v extended format. Each Frame of the error's Stacktrace will

This comment has been minimized.

Copy link
@seh

seh Jun 12, 2016

Contributor

Should that be "stack trace" instead of "Stacktrace"?

This comment has been minimized.

Copy link
@davecheney

davecheney Jun 12, 2016

Author Member

Stacktrace is the name of the type, just like Frame, see #50

This comment has been minimized.

Copy link
@seh

seh Jun 12, 2016

Contributor

Ah, got it. Thank you for clarifying.

// be printed in detail.
//
// Retrieving the stack trace of an error or wrapper
//
// New, Errorf, Wrap, and Wrapf record a stack trace at the point they are
Expand Down

0 comments on commit 9a4f977

Please sign in to comment.