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

Function NewFormatter

internal/stacktrace/stack.go:154–156  ·  internal/stacktrace/stack.go::NewFormatter

NewFormatter builds a new Formatter.

(b *buffer.Buffer)

Source from the content-addressed store, hash-verified

152
153// NewFormatter builds a new Formatter.
154func NewFormatter(b *buffer.Buffer) Formatter {
155 return Formatter{b: b}
156}
157
158// FormatStack formats all remaining frames in the provided stacktrace -- minus
159// the final runtime.main/runtime.goexit frame.

Callers 2

checkMethod · 0.92
TakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected