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)
| 126 | // formatSlice will format this StackTrace into the given buffer as a slice of |
| 127 | // Frame, only valid when called with '%s' or '%v'. |
| 128 | func (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. |
| 140 | type stack []uintptr |