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

Method formatSlice

stack.go:128–137  ·  view source on GitHub ↗

formatSlice will format this StackTrace into the given buffer as a slice of Frame, only valid when called with '%s' or '%v'.

(s fmt.State, verb rune)

Source from the content-addressed store, hash-verified

126// formatSlice will format this StackTrace into the given buffer as a slice of
127// Frame, only valid when called with '%s' or '%v'.
128func (st StackTrace) formatSlice(s fmt.State, verb rune) {
129 io.WriteString(s, "[")
130 for i, f := range st {
131 if i > 0 {
132 io.WriteString(s, " ")
133 }
134 f.Format(s, verb)
135 }
136 io.WriteString(s, "]")
137}
138
139// stack represents a stack of program counters.
140type stack []uintptr

Callers 1

FormatMethod · 0.95

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected