()
| 7 | ) |
| 8 | |
| 9 | func ExampleByteBuffer() { |
| 10 | bb := bytebufferpool.Get() |
| 11 | |
| 12 | bb.WriteString("first line\n") |
| 13 | bb.Write([]byte("second line\n")) |
| 14 | bb.B = append(bb.B, "third line\n"...) |
| 15 | |
| 16 | fmt.Printf("bytebuffer contents=%q", bb.B) |
| 17 | |
| 18 | // It is safe to release byte buffer now, since it is |
| 19 | // no longer used. |
| 20 | bytebufferpool.Put(bb) |
| 21 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…