aboutsummaryrefslogtreecommitdiff
path: root/librsync/nirvana.go
blob: a3b098fd3f53a508e4863194a70324da50f71941 (plain)
1
2
3
4
5
6
7
8
package 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
}