Documentation ¶
Overview ¶
Package vers provides version checking functionalities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶ added in v0.1.9
Check checks if a verion "ver" satisfies any of the semantic versions in "spec".
`>1.0.0 <2.0.0 || >3.0.0 !4.2.1` would match `1.2.3`, `1.9.9`, `3.1.1`. Not `4.2.1`, `2.1.1`
Since 0.1.9
func IsCompatible
deprecated
Types ¶
type VersionGetter ¶
type VersionGetter interface {
GetVersion() string
}
VersionGetter defines GetVersion()
Since 0.1.7
Click to show internal directories.
Click to hide internal directories.