github

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package github contains features for accessing repos on Github.

Index

Constants

This section is empty.

Variables

View Source
var ErrHttpError = errors.New("HTTP error")

Functions

This section is empty.

Types

type VersionInfo added in v0.11.0

type VersionInfo struct {
	Local         string // version of local installation
	Remote        string // latest version available remote
	Latest        string // latest version
	IsRemoteNewer bool
}

VersionInfo represents the version information. All versions are normalized.

func AvailableUpdate

func AvailableUpdate(gitHubOwner, githubRepo, localVersion string) (VersionInfo, error)

AvailableUpdate return the version of the latest release and reports wether the update is newer.

Jump to

Keyboard shortcuts

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