Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: BSD-3-Clause Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	// CurrentVersion is the current version string.
	//
	// Required: true
	CurrentVersion string `json:"currentVersion"`

	// NewestVersion is the newest available version string.
	//
	// Required: false
	NewestVersion string `json:"newestVersion,omitempty"`

	// UpdateAvailable indicates if an update is available.
	//
	// Required: true
	UpdateAvailable bool `json:"updateAvailable"`

	// ReleaseURL is the URL to the release page.
	//
	// Required: false
	ReleaseURL string `json:"releaseUrl,omitempty"`
}

Check contains simplified version check information.

type Info

type Info struct {
	// CurrentVersion is the current version string.
	//
	// Required: true
	CurrentVersion string `json:"currentVersion"`

	// CurrentTag is the current tag.
	//
	// Required: false
	CurrentTag string `json:"currentTag,omitempty"`

	// CurrentDigest is the current digest (hash) of the version.
	//
	// Required: false
	CurrentDigest string `json:"currentDigest,omitempty"`

	// Revision is the full revision identifier (e.g., commit hash).
	//
	// Required: true
	Revision string `json:"revision"`

	// ShortRevision is the short revision identifier (first 8 chars of commit hash).
	//
	// Required: true
	ShortRevision string `json:"shortRevision"`

	// GoVersion is the Go runtime version used to build the application.
	//
	// Required: true
	GoVersion string `json:"goVersion"`

	// EnabledFeatures is the list of build-time feature flags compiled into the binary.
	//
	// Required: false
	EnabledFeatures []string `json:"enabledFeatures,omitempty"`

	// BuildTime is the timestamp when the application was built.
	//
	// Required: false
	BuildTime string `json:"buildTime,omitempty"`

	// DisplayVersion is the version string formatted for display.
	//
	// Required: true
	DisplayVersion string `json:"displayVersion"`

	// IsSemverVersion indicates if the current version follows semantic versioning.
	//
	// Required: true
	IsSemverVersion bool `json:"isSemverVersion"`

	// NewestVersion is the newest available version string.
	//
	// Required: false
	NewestVersion string `json:"newestVersion,omitempty"`

	// NewestDigest is the digest (hash) of the newest available version.
	//
	// Required: false
	NewestDigest string `json:"newestDigest,omitempty"`

	// UpdateAvailable indicates if an update is available.
	//
	// Required: true
	UpdateAvailable bool `json:"updateAvailable"`

	// ReleaseURL is the URL to the release page.
	//
	// Required: false
	ReleaseURL string `json:"releaseUrl,omitempty"`

	// ReleaseNotes is the markdown body of the latest GitHub release.
	//
	// Required: false
	ReleaseNotes string `json:"releaseNotes,omitempty"`

	// ReleasedAt is the ISO-8601 timestamp the latest release was published.
	//
	// Required: false
	ReleasedAt string `json:"releasedAt,omitempty"`
}

Info contains detailed version information about the application.

Jump to

Keyboard shortcuts

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