Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AppImageCrafters/libzsync-go
Zsync implementation in Golang
https://github.com/AppImageCrafters/libzsync-go
file-transfer golang-library zsync
Last synced: 2 months 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-26T15:38:32.000Z (over 2 years ago)
- Last Synced: 2024-08-02T00:26:13.650Z (5 months ago)
- Topics: file-transfer, golang-library, zsync
- Language: Go
- Size: 115 KB
- Stars: 11
- Watchers: 3
- 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)
```