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

Method Stripped

internal/ztest/writer.go:94–96  ·  view source on GitHub ↗

Stripped returns the current buffer contents with the last trailing newline stripped.

()

Source from the content-addressed store, hash-verified

92// Stripped returns the current buffer contents with the last trailing newline
93// stripped.
94func (b *Buffer) Stripped() string {
95 return strings.TrimRight(b.String(), "\n")
96}

Callers 2

TestLoggerWriteFailureFunction · 0.95
TestBufferFunction · 0.95

Calls 1

StringMethod · 0.95

Tested by 2

TestLoggerWriteFailureFunction · 0.76
TestBufferFunction · 0.76