Registry / utility / hashicorp-go-getter

hashicorp-go-getter

JSON →
library1.8.6gogounverified

getter is a package for downloading files or directories from a variety of protocols including HTTP, Git, and S3.

go get github.com/hashicorp/go-getter
INSTALL
IMPORT
SIG · HASHICORP-GO-GETTE
H
hashicorp-go-getter
utilitygov1.8.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

getter
github.com/hashicorp/go-getter

Download a single file from a URL.

package main import ( "github.com/hashicorp/go-getter" ) func main() { // Download a file from a URL to a local destination err := getter.GetFile("/tmp/example.txt", "https://example.com/file.txt") if err != nil { panic(err) } }
Debug
Known issues
breakingThe API has changed significantly between v1 and v2; v1 is no longer maintained.
fix
Use v2 (github.com/hashicorp/go-getter/v2) for new projects.
affects: >=1.0.0 <2.0.0
Upgrade
Version history
1.8.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
hashicorp-go-getter — go get hashicorp-go-getter · libregistry