MCPcopy Index your code
hub / github.com/pkg/errors / Format

Method Format

stack.go:142–153  ·  view source on GitHub ↗
(st fmt.State, verb rune)

Source from the content-addressed store, hash-verified

140type stack []uintptr
141
142func (s *stack) Format(st fmt.State, verb rune) {
143 switch verb {
144 case 'v':
145 switch {
146 case st.Flag('+'):
147 for _, pc := range *s {
148 f := Frame(pc)
149 fmt.Fprintf(st, "\n%+v", f)
150 }
151 }
152 }
153}
154
155func (s *stack) StackTrace() StackTrace {
156 f := make([]Frame, len(*s))

Callers

nothing calls this directly

Calls 1

FrameTypeAlias · 0.85

Tested by

no test coverage detected