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