Categorygithub.com/AppImageCrafters/libzsync-go
repositorypackage
0.1.5
Repository: https://github.com/appimagecrafters/libzsync-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

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)