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