Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/AppImageCrafters/libzsync-go

Zsync implementation in Golang
https://github.com/AppImageCrafters/libzsync-go

file-transfer golang-library zsync

Last synced: about 2 months ago
JSON representation

Zsync implementation in Golang

Awesome Lists containing this project

README

        

# libzsync-go

libzsync implementation in Golang

See http://zsync.moria.org.uk/

## Usage

```go
import github.com/AppImageCrafters/libzsync-go
```

```go
// Configure
sync, _ := zsync.NewZSync("https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage.zsync")
sync.RemoteFileUrl = "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"

// Execute
output, _ := os.Create("/tmp/appimagetool-new-x86_64.AppImage")
err = sync.Sync("/tmp/appimagetool-x86_64.AppImage", output)
```