https://github.com/AppImageCrafters/libzsync-go
Zsync implementation in Golang
https://github.com/AppImageCrafters/libzsync-go
file-transfer golang-library zsync
Last synced: 21 days ago
JSON representation
Zsync implementation in Golang
- Host: GitHub
- URL: https://github.com/AppImageCrafters/libzsync-go
- Owner: AppImageCrafters
- License: mit
- Created: 2020-06-05T11:33:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-26T15:38:32.000Z (almost 3 years ago)
- Last Synced: 2025-03-28T04:41:46.955Z (23 days ago)
- Topics: file-transfer, golang-library, zsync
- Language: Go
- Size: 115 KB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-appimage - libzsync-go - Zsync implementation written in Go that can be used to update AppImages. (AppImage developer tools / Libraries)
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)
```