MCPcopy
hub / github.com/uber-go/zap / FormatFrame

Method FormatFrame

internal/stacktrace/stack.go:170–181  ·  view source on GitHub ↗

FormatFrame formats the given frame.

(frame runtime.Frame)

Source from the content-addressed store, hash-verified

168
169// FormatFrame formats the given frame.
170func (sf *Formatter) FormatFrame(frame runtime.Frame) {
171 if sf.nonEmpty {
172 sf.b.AppendByte('\n')
173 }
174 sf.nonEmpty = true
175 sf.b.AppendString(frame.Function)
176 sf.b.AppendByte('\n')
177 sf.b.AppendByte('\t')
178 sf.b.AppendString(frame.File)
179 sf.b.AppendByte(':')
180 sf.b.AppendInt(int64(frame.Line))
181}

Callers 2

checkMethod · 0.95
FormatStackMethod · 0.95

Calls 3

AppendByteMethod · 0.80
AppendStringMethod · 0.65
AppendIntMethod · 0.65

Tested by

no test coverage detected