Documentation
¶
Overview ¶
cmd/preview.go
Index ¶
Constants ¶
View Source
const (
LatestReleaseURL = "https://github.com/a3chron/stellar/releases/latest/download"
)
Variables ¶
This section is empty.
Functions ¶
func IsUpdateAvailable ¶ added in v0.1.5
IsUpdateAvailable checks if a newer version is available
func SetVersionInfo ¶ added in v0.1.5
func SetVersionInfo(version, commit, date string)
SetVersionInfo is called from main to set version information
Types ¶
type GitHubRelease ¶ added in v0.1.5
type GitHubRelease struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
PublishedAt time.Time `json:"published_at"`
HTMLURL string `json:"html_url"`
}
func GetLatestRelease ¶ added in v0.1.5
func GetLatestRelease() (*GitHubRelease, error)
GetLatestRelease fetches the latest GitHub release information
Click to show internal directories.
Click to hide internal directories.