WriteString implements io.StringWriter.
(s string)
| 153 | |
| 154 | // WriteString implements io.StringWriter. |
| 155 | func (b *Buffer) WriteString(s string) (int, error) { |
| 156 | return b.Write([]byte(s)) |
| 157 | } |
| 158 | |
| 159 | // Read implements io.Reader.Read(). |
| 160 | func (b *Buffer) Read(data []byte) (int, error) { |