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

Method WriteByte

buffer/buffer.go:118–121  ·  view source on GitHub ↗

WriteByte writes a single byte to the Buffer. Error returned is always nil, function signature is compatible with bytes.Buffer and bufio.Writer

(v byte)

Source from the content-addressed store, hash-verified

116// Error returned is always nil, function signature is compatible
117// with bytes.Buffer and bufio.Writer
118func (b *Buffer) WriteByte(v byte) error {
119 b.AppendByte(v)
120 return nil
121}
122
123// WriteString writes a string to the Buffer.
124//

Callers 1

TestBufferWritesFunction · 0.80

Calls 1

AppendByteMethod · 0.95

Tested by 1

TestBufferWritesFunction · 0.64