Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 565 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 565 Bytes

libzsync-go

libzsync implementation in Golang

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

Usage

import github.com/AppImageCrafters/libzsync-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)