Skip to content

Releases

v2.1.1

Choose a tag to compare

@github-actions github-actions released this 17 Nov 05:46

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.1.1

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.1.1

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.1.1

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.1.1

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 05:46

v2.1.0

Download results (closes #2)

  • DownloadResult, DownloadManyResult, DownloadManySimpleResult, FromFileResult, FromManifestResult return Result{URL, Path, Size, Bytes, Segments, ChecksumVerified, Duration, CacheHit}
  • GoDownload.OnDone / Options.OnDone — one callback per completed file

Freshness check

  • NoStale option + 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-url for 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

Choose a tag to compare

@github-actions github-actions released this 25 Oct 09:14
4071473

godownload v2.0.0 — a full rewrite of the 2019 library.

Highlights

  • Error-based API (breaking change from v1): all methods return error instead of log.Fatal/panic
  • Atomic writes: files land under their final name only after a successful write (.part + rename)
  • Resumable downloads: Range requests continue interrupted downloads from the .part file
  • Progress callbacks: OnProgress(transferred, total) with periodic and final notifications
  • Checksum verification: md5/sha1/sha256/sha512, verified before the file becomes visible
  • Rate limiting: RateLimit in 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/godownload with 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).

Full Changelog: see the squashed PRs #3–#12.