Documentation
¶
Index ¶
Constants ¶
View Source
const Header = "X-Client-Version"
Variables ¶
This section is empty.
Functions ¶
func IsDevelopment ¶
IsDevelopment returns true for versions that should skip compatibility checks.
func IsHomebrew ¶
func IsHomebrew() bool
IsHomebrew returns true if the binary appears to be installed via homebrew.
func IsNewer ¶
IsNewer returns true if latest is newer than current. Development versions are never considered outdated.
func ParseMajor ¶
ParseMajor extracts the major version number from a semver string. Returns "0" for unparseable versions.
Types ¶
type VersionError ¶
type VersionError struct {
ClientVersion string
ServerVersion string
MinVersion string
IsUnstable bool
}
func CheckCompatibility ¶
func CheckCompatibility(clientVersion string) *VersionError
func CheckCompatibilityBetween ¶ added in v0.0.5
func CheckCompatibilityBetween(clientVersion, serverVersion string) *VersionError
func (VersionError) Error ¶
func (e VersionError) Error() string
Click to show internal directories.
Click to hide internal directories.