9 lines
218 B
Go
9 lines
218 B
Go
|
package httputil
|
||
|
|
||
|
type nopWriterImpl struct{}
|
||
|
|
||
|
var nopWriter = nopWriterImpl{}
|
||
|
|
||
|
func (nopWriterImpl) Write(b []byte) (int, error) { return len(b), nil }
|
||
|
func (nopWriterImpl) Close() error { return nil }
|