From 2d56d29ba5c20a582119c1bbfa48f2dbcbb07aaf Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Wed, 27 Mar 2013 00:10:32 +0100 Subject: Loading signatures and creating deltas implemented Type SignatureGen is now type Job, since we can use the same code for other librsync operations too. --- librsync/nirvana.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 librsync/nirvana.go (limited to 'librsync/nirvana.go') diff --git a/librsync/nirvana.go b/librsync/nirvana.go new file mode 100644 index 0000000..a3b098f --- /dev/null +++ b/librsync/nirvana.go @@ -0,0 +1,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 +} -- cgit v1.2.3-54-g00ecf