From c5fe904864a2a0943fb447661fba831b85b5467c Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Sat, 11 Jun 2016 15:54:49 +1000 Subject: [PATCH] update godoc --- errors.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/errors.go b/errors.go index a31ca30..58996ba 100644 --- a/errors.go +++ b/errors.go @@ -51,6 +51,18 @@ // type Stacktrace interface { // Stacktrace() []Frame // } +// +// The Frame type represents a call site in the stacktrace. Frame supports +// the fmt.Formatter interface that can be used for printing information about +// the stacktrace of this error. For example: +// +// if err, ok := err.(Stacktrace); ok { +// for _, f := range err.Stacktrace() { +// fmt.Printf("%+s:%d", f) +// } +// } +// +// See the documentation for Frame.Format for more details. package errors import (