aboutsummaryrefslogtreecommitdiff
path: root/librsync/nirvana.go
blob: b5feb3ebaa902fdd5a7319926d4c222d3dc282e4 (plain)
1
2
3
4
5
6
7
8
package librsync // import "code.laria.me/golibrsync/librsync"

// nirvana is a io.Writer that will discard all input (like /dev/null)
type nirvana struct{}

func (n *nirvana) Write(p []byte) (int, error) {
	return len(p), nil
}