improve version comments

This commit is contained in:
Aneurin Barker Snook
2024-07-11 22:59:09 +01:00
parent c86decff04
commit 01ca4b8660
+6 -6
View File
@@ -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).