Documentation ¶
Index ¶
- Variables
- type SemanticVersion
- func (v *SemanticVersion) IsEqual(v2 *SemanticVersion) bool
- func (v *SemanticVersion) IsGreater(v2 *SemanticVersion) bool
- func (v *SemanticVersion) IsGreaterOrEqual(v2 *SemanticVersion) bool
- func (v *SemanticVersion) IsLess(v2 *SemanticVersion) bool
- func (v *SemanticVersion) IsLessOrEqual(v2 *SemanticVersion) bool
- func (v *SemanticVersion) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplicationVersion = NewVersion(0, 3, 5)
ApplicationVersion represents application version.
Functions ¶
This section is empty.
Types ¶
type SemanticVersion ¶
type SemanticVersion struct {
// contains filtered or unexported fields
}
SemanticVersion represents version information with Semantic Versioning specifications.
func NewVersion ¶
func NewVersion(major, minor, patch uint) *SemanticVersion
NewVersion initializes a new instance of SemanticVersion.
func (*SemanticVersion) IsEqual ¶
func (v *SemanticVersion) IsEqual(v2 *SemanticVersion) bool
IsEqual returns true if version instance is equal to the second.
func (*SemanticVersion) IsGreater ¶
func (v *SemanticVersion) IsGreater(v2 *SemanticVersion) bool
IsGreater returns true if version instance is greater than the second.
func (*SemanticVersion) IsGreaterOrEqual ¶
func (v *SemanticVersion) IsGreaterOrEqual(v2 *SemanticVersion) bool
IsGreaterOrEqual returns true if version instance is greater than or equal to the second.
func (*SemanticVersion) IsLess ¶
func (v *SemanticVersion) IsLess(v2 *SemanticVersion) bool
IsLess returns true if version instance is less than the second.
func (*SemanticVersion) IsLessOrEqual ¶
func (v *SemanticVersion) IsLessOrEqual(v2 *SemanticVersion) bool
IsLessOrEqual returns true if version instance is less than or equal to the second.
func (*SemanticVersion) String ¶
func (v *SemanticVersion) String() string
String returns a string that represents this instance.
Click to show internal directories.
Click to hide internal directories.