github

package
v0.0.0-...-73be73c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ASSET_REGEX_PATTERN = "" /* 132-byte string literal not displayed */
View Source
const ASSET_URL = "https://api.github.com/repos/godotengine/godot-builds/releases/tags/%s"
View Source
const NEXT_REGEX_PATTERN = "<([^>]*)>[^<]*(next)"
View Source
const REPOSITORY_URL = "https://api.github.com/repos/godotengine/godot-builds/releases?per_page=100"

Variables

Functions

This section is empty.

Types

type Data

type Data struct {
	Name   string `json:"tag_name"`
	Assets []struct {
		DownloadURL string `json:"browser_download_url"`
		Name        string `json:"name"`
	} `json:"assets"`
}

type Github

type Github struct {
	Config *config.Config
}

func New

func New(config *config.Config) *Github

func (*Github) FetchAsset

func (g *Github) FetchAsset(platform platform.Platform, semver semver.Semver) (*repository.Asset, error)

func (*Github) FetchDownloads

func (g *Github) FetchDownloads(mono bool) ([]repository.Download, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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