Documentation
¶
Index ¶
- Constants
- Variables
- type Release
- func (a Release) Compare(b Release) int
- func (a Release) Equal(b Release) bool
- func (a Release) Greater(b Release) bool
- func (a Release) GreaterOrEqual(b Release) bool
- func (r Release) IsStable() bool
- func (r Release) IsValid() bool
- func (a Release) Less(b Release) bool
- func (a Release) LessOrEqual(b Release) bool
- func (r Release) String() string
- type Relver
- func (a Relver) Compare(b Relver) int
- func (a Relver) Equal(b Relver) bool
- func (vr Relver) ExportTemplatesString() string
- func (vr Relver) GodotString() string
- func (a Relver) Greater(b Relver) bool
- func (a Relver) GreaterOrEqual(b Relver) bool
- func (a Relver) IsStable() bool
- func (r Relver) IsValid() bool
- func (a Relver) Less(b Relver) bool
- func (a Relver) LessOrEqual(b Relver) bool
- type Semver
- func (a Semver) Compare(b Semver) int
- func (a Semver) Equal(b Semver) bool
- func (s Semver) ExportTemplatesString() string
- func (s Semver) GodotString() string
- func (a Semver) Greater(b Semver) bool
- func (a Semver) GreaterOrEqual(b Semver) bool
- func (a Semver) IsStable() bool
- func (s Semver) IsValid() bool
- func (a Semver) Less(b Semver) bool
- func (a Semver) LessOrEqual(b Semver) bool
- type Version
- func (a Version) Compare(b Version) int
- func (a Version) Equal(b Version) bool
- func (a Version) Greater(b Version) bool
- func (a Version) GreaterOrEqual(b Version) bool
- func (v Version) IsValid() bool
- func (a Version) Less(b Version) bool
- func (a Version) LessOrEqual(b Version) bool
- func (v Version) String() string
Constants ¶
View Source
const RELEASE_REGEX_PATTERN = "((dev|alpha|beta|rc)([1-9][0-9]*|0)|stable)([-_.](unofficial))?"
View Source
const RELVER_REGEX_PATTERN = "(" + VERSION_REGEX_PATTERN + ")[-_.](" + RELEASE_REGEX_PATTERN + ")"
View Source
const SEMVER_REGEX_PATTERN = RELVER_REGEX_PATTERN + "([-_.](mono))?"
View Source
const VERSION_REGEX_PATTERN = "([1-9][0-9]*|0)[.]([1-9][0-9]*|0)([.]([1-9][0-9]*|0))?([.]([1-9][0-9]*|0))?"
Variables ¶
View Source
var ErrRegexFailed = errors.New("regex failed")
View Source
var Labels = map[string]int{
"dev": 1,
"alpha": 2,
"beta": 3,
"rc": 4,
"stable": 5,
}
View Source
var ReleaseRegex = regexp.MustCompile(RELEASE_REGEX_PATTERN)
View Source
var RelverRegex = regexp.MustCompile(RELVER_REGEX_PATTERN)
View Source
var SemverRegex = regexp.MustCompile(SEMVER_REGEX_PATTERN)
View Source
var StableLabels = []string{
"stable",
}
View Source
var VersionRegex = regexp.MustCompile(VERSION_REGEX_PATTERN)
Functions ¶
This section is empty.
Types ¶
type Relver ¶
func MaybeRelver ¶
func ParseRelver ¶
func (Relver) ExportTemplatesString ¶
func (Relver) GodotString ¶
func (Relver) GreaterOrEqual ¶
func (Relver) LessOrEqual ¶
type Semver ¶
func (Semver) ExportTemplatesString ¶
func (Semver) GodotString ¶
func (Semver) GreaterOrEqual ¶
func (Semver) LessOrEqual ¶
Click to show internal directories.
Click to hide internal directories.