mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
19 lines
342 B
Go
19 lines
342 B
Go
package main
|
|
|
|
// NullOutput used for debugging, prints nothing
|
|
type NullOutput struct {
|
|
}
|
|
|
|
// NullOutput constructor for NullOutput
|
|
func NewNullOutput() (o *NullOutput) {
|
|
return new(NullOutput)
|
|
}
|
|
|
|
func (o *NullOutput) Write(data []byte) (int, error) {
|
|
return len(data), nil
|
|
}
|
|
|
|
func (o *NullOutput) String() string {
|
|
return "Null Output"
|
|
}
|