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

Method String

buffer/buffer.go:98–100  ·  view source on GitHub ↗

String returns a string copy of the underlying byte slice.

()

Source from the content-addressed store, hash-verified

96
97// String returns a string copy of the underlying byte slice.
98func (b *Buffer) String() string {
99 return string(b.bs)
100}
101
102// Reset resets the underlying byte slice. Subsequent writes re-use the slice's
103// backing array.

Callers 11

TestIncreaseLevelFunction · 0.95
TestSugarAddCallerFailFunction · 0.95
TestLoggerAddCallerFailFunction · 0.95
TestRegisterSinkFunction · 0.95
TestBufferWriterFunction · 0.95
LinesMethod · 0.95
StrippedMethod · 0.95
TestBufferWritesFunction · 0.45
fakeSlogFieldsFunction · 0.45

Calls

no outgoing calls

Tested by 9

TestIncreaseLevelFunction · 0.76
TestSugarAddCallerFailFunction · 0.76
TestLoggerAddCallerFailFunction · 0.76
TestRegisterSinkFunction · 0.76
TestBufferWriterFunction · 0.76
TestBufferWritesFunction · 0.36
fakeSlogFieldsFunction · 0.36