github

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LatestRelease

func LatestRelease(owner, repo string) (tag string, err error)

func LatestReleaseFromMod

func LatestReleaseFromMod(mod *mods.Mod) (tag string, err error)

Types

type DlRelease

type DlRelease struct {
	Assets []Download `json:"assets"`
}

type Download

type Download struct {
	Name string `json:"name"`
	URL  string `json:"browser_download_url"`
}

func ListDownloads

func ListDownloads(owner, repo, tag string) (downloads []Download, err error)

type Release

type Release struct {
	TagName string `json:"tag_name"`
}

Jump to

Keyboard shortcuts

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