Repository navigation
Releases
Releases · saromanov/godownload
v2.1.1
What's Changed
- Bump golangci/golangci-lint-action from 7 to 9 by @dependabot[bot] in #16
- Bump actions/setup-go from 5 to 7 by @dependabot[bot] in #17
- Bump actions/checkout from 4 to 7 by @dependabot[bot] in #13
- Bump actions/upload-artifact from 4 to 7 by @dependabot[bot] in #14
- Bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #15
New Contributors
- @dependabot[bot] made their first contribution in #16
Full Changelog: v2.1.0...v2.1.1
What's Changed
- Bump golangci/golangci-lint-action from 7 to 9 by @dependabot[bot] in #16
- Bump actions/setup-go from 5 to 7 by @dependabot[bot] in #17
- Bump actions/checkout from 4 to 7 by @dependabot[bot] in #13
- Bump actions/upload-artifact from 4 to 7 by @dependabot[bot] in #14
- Bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #15
New Contributors
- @dependabot[bot] made their first contribution in #16
Full Changelog: v2.1.0...v2.1.1
What's Changed
- Bump golangci/golangci-lint-action from 7 to 9 by @dependabot[bot] in #16
- Bump actions/setup-go from 5 to 7 by @dependabot[bot] in #17
- Bump actions/checkout from 4 to 7 by @dependabot[bot] in #13
- Bump actions/upload-artifact from 4 to 7 by @dependabot[bot] in #14
- Bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #15
New Contributors
- @dependabot[bot] made their first contribution in #16
Full Changelog: v2.1.0...v2.1.1
What's Changed
- Bump golangci/golangci-lint-action from 7 to 9 by @dependabot[bot] in #16
- Bump actions/setup-go from 5 to 7 by @dependabot[bot] in #17
- Bump actions/checkout from 4 to 7 by @dependabot[bot] in #13
- Bump actions/upload-artifact from 4 to 7 by @dependabot[bot] in #14
- Bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #15
New Contributors
- @dependabot[bot] made their first contribution in #16
Full Changelog: v2.1.0...v2.1.1
v2.1.0
v2.1.0
Download results (closes #2)
DownloadResult,DownloadManyResult,DownloadManySimpleResult,FromFileResult,FromManifestResultreturnResult{URL, Path, Size, Bytes, Segments, ChecksumVerified, Duration, CacheHit}GoDownload.OnDone/Options.OnDone— one callback per completed file
Freshness check
NoStaleoption + CLI--no-stale: skip re-downloads when the server reports the file unchanged (If-None-Match/If-Modified-Since, sidecar<outpath>.gd-meta)- Works with multi-segment downloads
HuggingFace models
DownloadHF(repo)/ CLI--hf owner/model: bulk-fetches a whole model repository, nested paths preserved--hf-api-urlfor self-hosted HF-compatible endpoints- CLI
--json(also for URLs/manifests): stable machine-readable report for agent tool-calls
README
- Feature comparison table vs aria2c/wget/curl, agent workflow, terminal demo GIF
Install
go install github.com/saromanov/godownload/cmd/godownload@latest
Binaries for linux/darwin/windows (amd64, arm64) below; sha256 files alongside.
Full changelog: v2.0.0...v2.1.0
v2.0.0
godownload v2.0.0 — a full rewrite of the 2019 library.
Highlights
- Error-based API (breaking change from v1): all methods return
errorinstead oflog.Fatal/panic - Atomic writes: files land under their final name only after a successful write (
.part+ rename) - Resumable downloads:
Rangerequests continue interrupted downloads from the.partfile - Progress callbacks:
OnProgress(transferred, total)with periodic and final notifications - Checksum verification: md5/sha1/sha256/sha512, verified before the file becomes visible
- Rate limiting:
RateLimitin bytes per second (token-bucket) - Multi-segment downloads: parallel ranged segments with per-segment resume, transparent fallback for servers without Range support
- YAML manifests: declarative download lists with per-item overrides and mirror failover (
FromManifest) - context.Context: context-aware variants of every public method
- CLI:
cmd/godownloadwith binaries for linux/darwin/windows (amd64/arm64)
Install
go get github.com/saromanov/godownload@v2.0.0
Or grab a binary from the assets below (checksums in .sha256 files).