Bytes returns the contents of the buffer as a byte slice.
()
| 65 | |
| 66 | // Bytes returns the contents of the buffer as a byte slice. |
| 67 | func (b *buffer) Bytes() []byte { |
| 68 | return *b |
| 69 | } |
| 70 | |
| 71 | // String returns the contents of the buffer as a string. |
| 72 | func (b *buffer) String() string { |
no outgoing calls