Documentation
¶
Overview ¶
Package productversion identifies the running product and compares stable releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare reports available, current, ahead, uncomparable, or no_candidate. Only explicitly marked releases with stable versions can be compared.
func StableVersion ¶
StableVersion returns a canonical stable version with a leading v. It requires all three numeric components and ignores valid build metadata.
Types ¶
type Identity ¶
type Identity struct {
Edition string `json:"edition"`
InstallChannel string `json:"install_channel"`
Build Build `json:"build"`
}
Identity is supplied by the executable or embedding host, never by configuration.
func ResolveIdentity ¶
ResolveIdentity preserves explicit host identity and safely defaults legacy callers. Unknown identity values never promote a development build to a release.
Click to show internal directories.
Click to hide internal directories.