aboutsummaryrefslogtreecommitdiff
path: root/librsync
diff options
context:
space:
mode:
authorAyke van Laethem <aykevanlaethem@gmail.com>2016-04-16 15:28:14 +0200
committerAyke van Laethem <aykevanlaethem@gmail.com>2016-04-16 15:28:14 +0200
commit3275f0686a08d8e323568036f003b92b6655808c (patch)
tree6eb94b6f3b29ad29ffa852d76d82925b8b37e93b /librsync
parentdc74089a97453ccb1a1a74078170bd50258a04b1 (diff)
downloadgolibrsync-3275f0686a08d8e323568036f003b92b6655808c.tar.gz
golibrsync-3275f0686a08d8e323568036f003b92b6655808c.tar.bz2
golibrsync-3275f0686a08d8e323568036f003b92b6655808c.zip
go fmt
Diffstat (limited to 'librsync')
-rw-r--r--librsync/librsync.go8
-rw-r--r--librsync/librsync_test.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/librsync/librsync.go b/librsync/librsync.go
index bf60a1d..a3a4e87 100644
--- a/librsync/librsync.go
+++ b/librsync/librsync.go
@@ -79,7 +79,7 @@ func NewDefaultSignatureGen(basis io.Reader) (job *Job, err error) {
}
// NewSignatureGen creates a signature generation job.
-//
+//
// blocklen is the length of a block.
// stronglen is the length of the stong hash.
// basis is an io.Reader that provides data of the basis file.
@@ -253,7 +253,7 @@ func LoadSignature(input io.Reader) (sig Signature, err error) {
}
// NewDeltaGen creates a delta generation job.
-//
+//
// sig is the signature loaded by LoadSignature.
// newfile is a reades that provides the new, modified data.
func NewDeltaGen(sig Signature, newfile io.Reader) (job *Job, err error) {
@@ -272,7 +272,7 @@ func NewDeltaGen(sig Signature, newfile io.Reader) (job *Job, err error) {
}
// Patcher is a job with additional hidden data for patching.
-//
+//
// IMPORTANT: You still need to Close() this!
type Patcher struct {
*Job
@@ -283,7 +283,7 @@ type Patcher struct {
var patchCallback = C.patchCallback // So we can use the `&` operator in NewPatcher
// NewPatcher creates a Patcher (which basically is a Job object with some hidden extra data).
-//
+//
// delta is a reader that provides the delta.
// basis provides the basis file.
func NewPatcher(delta io.Reader, basis io.ReaderAt) (job *Patcher, err error) {
diff --git a/librsync/librsync_test.go b/librsync/librsync_test.go
index 256e344..7c6a278 100644
--- a/librsync/librsync_test.go
+++ b/librsync/librsync_test.go
@@ -59,7 +59,7 @@ func TestSignatureDeltaPatch(t *testing.T) {
}
}
- // Apply Patch
+ // Apply Patch
patchres := new(bytes.Buffer)
patcher, err := NewPatcher(deltabuf, orig)
if err != nil {