Documentation
¶
Index ¶
Constants ¶
View Source
const ( CurrentAPIVersion = "1.0.0" MinAPIVersion = "1.0.0" MaxAPIVersion = "1.99.99" )
MOPS API version constants
Variables ¶
This section is empty.
Functions ¶
func CheckAPICompatibility ¶
CheckAPICompatibility checks if a plugin API version is compatible with MOPS
func GetCurrentAPIVersion ¶
func GetCurrentAPIVersion() string
GetCurrentAPIVersion returns the current MOPS API version
Types ¶
type Version ¶
type Version struct {
Major int
Minor int
Patch int
Pre string // Pre-release identifier
Build string // Build metadata
}
Version represents a semantic version
func (*Version) Compare ¶
Compare compares two versions Returns: -1 if v < other, 0 if v == other, 1 if v > other
func (*Version) IsCompatible ¶
IsCompatible checks if this version is compatible with the target version range
Click to show internal directories.
Click to hide internal directories.