Home

Awesome

xferspdy

This library provides binary diff and patch API in golang.

Supported today:

Reference : [Rsync Algorithm] (https://rsync.samba.org/tech_report/node2.html)

Setup

Using the API

See GoDoc. The docs also contain an example usage of the API.

Using the fpgen, diff and patch CLI utilities:

The library also provides CLI wrappers on API.

Example

It will create a patch file <path>/MyPrezVersion2.pptx.patch

NOTE: diff and patch are also common utilities present on most distributions so its better to give explicit path to these binaries. for example use $GOPATH/bin/diff and $GOPATH/bin/patch