version

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.7.0"

Version is the current version of MinimalDoc

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	CurrentVersion  string
	LatestVersion   string
	UpdateAvailable bool
	ReleaseURL      string
	PublishedAt     string
	ReleaseNotes    string
}

CheckResult contains the result of a version check

func CheckForUpdate

func CheckForUpdate() (*CheckResult, error)

CheckForUpdate checks if a newer version is available on GitHub

type GitHubRelease

type GitHubRelease struct {
	TagName     string `json:"tag_name"`
	Name        string `json:"name"`
	PublishedAt string `json:"published_at"`
	HTMLURL     string `json:"html_url"`
	Body        string `json:"body"`
}

GitHubRelease represents the GitHub API response for a release

Jump to

Keyboard shortcuts

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