github

package
v1.8.30 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAssetsFound = errors.New(`no assets found`)

Functions

func Download

func Download(orig, repo string) (string, error)

Types

type GithubRelease

type GithubRelease struct {
	TagName string               `json:"tag_name"`
	Assets  []GithubReleaseAsset `json:"assets"`
}

func GetReleaseURL

func GetReleaseURL(orig, repo string) (*GithubRelease, error)

type GithubReleaseAsset

type GithubReleaseAsset struct {
	Name string `json:"name"`
	Size int64  `json:"size"`
	URL  string `json:"browser_download_url"`
}

Jump to

Keyboard shortcuts

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