Skip to content

Commit 580701c

Browse files
committed
version: more explicit version for comparison
For deterministic comparison and still providing a Version string for representation and reuse. Signed-off-by: Vincent Batts <[email protected]>
1 parent 3f62423 commit 580701c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

version.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
package specs
22

3+
import "fmt"
4+
5+
const (
6+
// VersionMajor is for an API incompatible changes
7+
VersionMajor = 0
8+
// VersionMinor is for functionality in a backwards-compatible manner
9+
VersionMinor = 1
10+
// VersionPatch is for backwards-compatible bug fixes
11+
VersionPatch = 0
12+
)
13+
314
// Version is the specification version that the package types support.
4-
const Version = "pre-draft"
15+
var Version = fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)

0 commit comments

Comments
 (0)