Documentation
¶
Index ¶
- func IsValid(versionName string) bool
- type Version
- func (v Version) BadString() string
- func (v Version) GreaterThan(anotherVersion Version) bool
- func (v Version) GreaterThanOrEqual(anotherVersion Version) bool
- func (v Version) LessThan(anotherVersion Version) bool
- func (v Version) LessThanOrEqual(anotherVersion Version) bool
- func (v Version) MarshalJSON() ([]byte, error)
- func (v Version) String() string
- func (v *Version) UnmarshalJSON(data []byte) error
- func (v Version) VersionString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Version ¶
type Version struct {
Major int
Minor int
Patch int
Commit string
PreReleaseIdentifier string
PreReleaseVersion int
}
func (Version) GreaterThan ¶
func (Version) GreaterThanOrEqual ¶
func (Version) LessThanOrEqual ¶
func (Version) MarshalJSON ¶
func (*Version) UnmarshalJSON ¶
func (Version) VersionString ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.