package
0.0.0-20240826141418-75fe9e6d1c2f
Repository: https://github.com/evanj/hacks.git
Documentation: pkg.go.dev
# Functions
Download saves URL as bytes in memory, verifying a SHA256 hash.
ExtractTar extracts a tar file from r into destinationDir.
FormatHashes returns a string value of hashes to be copy/pasted into code.
GetPlatform returns the current platform from runtime.GOOS and runtime.GOARCH.
NewPackageFetcher creates a new fetcher that uses the provided urlTemplate.
NilLogFunc does not log anything.
# Structs
PackageFetcher downloads packages for a specific host platform.
Platform represents the host platform as returned by Go, for use as a map key.
URLHostPlatform represents the host platform for rendering a URL template.
# Type aliases
LogFunc defines a function for verbose logging.