improve version comments
This commit is contained in:
+6
-6
@@ -4,14 +4,14 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Version is a structured representation of a version number
|
// Version is a structured representation of a version number.
|
||||||
type Version struct {
|
type Version struct {
|
||||||
Major int
|
Major int // Major version number.
|
||||||
Minor int
|
Minor int // Minor version number.
|
||||||
Patch int
|
Patch int // Patch version number.
|
||||||
Extension string
|
Extension string // Version extension, such as pre-release number or build metdata.
|
||||||
|
|
||||||
Text string
|
Text string // Original version string, if this version was created via the Parse function.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compare this version (a) with another version (b).
|
// Compare this version (a) with another version (b).
|
||||||
|
|||||||
Reference in New Issue
Block a user