Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SemVer ¶
SemVer represents a semantic version (Major.Minor.Patch)
func GetDocVersion ¶
GetDocVersion reads and parses the version from server_docs/api.md
func ParseSemVer ¶
ParseSemVer parses a semantic version string like "v0.43.6" or "0.43.6"
func (SemVer) Compare ¶
Compare compares two versions and returns the difference Positive values mean v is greater than other, negative means v is less than other
type VersionCheck ¶
type VersionCheck struct {
ServerVersion SemVer
ExpectedVersion SemVer
MajorMismatch bool
MinorDiff int // Difference in minor versions (0 if major differs)
WarningMessage string
ErrorMessage string
}
VersionCheck holds the result of a version compatibility check
func CheckVersion ¶
func CheckVersion(serverVersionStr string) (*VersionCheck, error)
CheckVersion compares the server version against the documented API version
func (*VersionCheck) Banner ¶
func (vc *VersionCheck) Banner() string
Banner returns a multi-line banner for version warnings
func (*VersionCheck) Check ¶
func (vc *VersionCheck) Check() bool
Check returns true if versions are compatible (no major mismatch, minor diff <= 10)