download

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(rawURL string, log log.Logger) (io.ReadCloser, error)
func Head(rawURL string) (int, error)

Types

type GithubRelease

type GithubRelease struct {
	Assets []GithubReleaseAsset `json:"assets,omitempty"`
}

type GithubReleaseAsset

type GithubReleaseAsset struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type HTTPStatusError added in v0.12.2

type HTTPStatusError struct {
	StatusCode int
	URL        string
	Body       string
}

HTTPStatusError wraps HTTP status code errors for better error handling.

func (*HTTPStatusError) Error added in v0.12.2

func (e *HTTPStatusError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL