gGithub

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assets

type Assets struct {
	Name               string `json:"name"`
	ContentType        string `json:"content_type"`
	BrowserDownloadURL string `json:"browser_download_url"`
}

type Release added in v1.1.1

type Release struct {
	TagName    string   `json:"tag_name"`
	Assets     []Assets `json:"assets"`
	TarballURL string   `json:"tarball_url"`
	ZipballURL string   `json:"zipball_url"`
	Body       string   `json:"body"`
}

func NewRelease added in v1.1.1

func NewRelease(releaseApiUrl string) (r *Release, err error)

NewRelease 新建 Release https://docs.github.com/en/rest/releases

func NewReleaseById added in v1.1.1

func NewReleaseById(repo string, id string) (r *Release, err error)

func NewReleaseByTag added in v1.1.1

func NewReleaseByTag(repo string, tag string) (r *Release, err error)

func NewReleaseLatest added in v1.1.1

func NewReleaseLatest(repo string) (r *Release, err error)

func (*Release) SearchRelease added in v1.1.1

func (r *Release) SearchRelease(includes []string, excludes []string) (assets []Assets)

SearchRelease 搜索

Jump to

Keyboard shortcuts

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