15 lines
138 B
Go
15 lines
138 B
Go
|
package tcp
|
||
|
|
||
|
import (
|
||
|
"bytes"
|
||
|
)
|
||
|
|
||
|
type buffer struct {
|
||
|
*bytes.Buffer
|
||
|
}
|
||
|
|
||
|
func (b *buffer) Close() error {
|
||
|
b.Buffer.Reset()
|
||
|
return nil
|
||
|
}
|