Documentation ¶
Index ¶
Constants ¶
View Source
const FeedbackPkg = feedback.Package("versions")
Variables ¶
View Source
var ( ErrInvalidVersion = errors.New("invalid version") ErrNoCompatibleVersion = errors.New("no compatible version") )
Functions ¶
Types ¶
type Version ¶
type Version []int
func FindCompatibleInMap ¶
FindCompatibleInMap returns the next best compatible module version in versionsMap (library/protocol version -> application version).
func (Version) IsCompatible ¶
IsCompatible returns false if one of the following conditions is true:
- the major component differs
- the major component is 0 AND the minor component differs
- the minor component of `other` is greater than the minor component of `v`
func (Version) MarshalText ¶
func (*Version) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.