mirror of
https://github.com/opencontainers/runtime-spec.git
synced 2026-02-05 18:45:18 +01:00
version: more explicit version for comparison
For deterministic comparison and still providing a Version string for representation and reuse. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
13
version.go
13
version.go
@@ -1,4 +1,15 @@
|
||||
package specs
|
||||
|
||||
import "fmt"
|
||||
|
||||
const (
|
||||
// VersionMajor is for an API incompatible changes
|
||||
VersionMajor = 0
|
||||
// VersionMinor is for functionality in a backwards-compatible manner
|
||||
VersionMinor = 1
|
||||
// VersionPatch is for backwards-compatible bug fixes
|
||||
VersionPatch = 0
|
||||
)
|
||||
|
||||
// Version is the specification version that the package types support.
|
||||
const Version = "pre-draft"
|
||||
var Version = fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch)
|
||||
|
||||
Reference in New Issue
Block a user