From 475c51cbd7f6368c13d21f5cf70633636e5a77f8 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 16 Aug 2016 11:34:01 -0400 Subject: [PATCH] version: adding a version variable Signed-off-by: Vincent Batts --- version.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 version.go diff --git a/version.go b/version.go new file mode 100644 index 0000000..7377260 --- /dev/null +++ b/version.go @@ -0,0 +1,18 @@ +package mtree + +import "fmt" + +const ( + // VersionMajor is for an API incompatible changes + VersionMajor = 0 + // VersionMinor is for functionality in a backwards-compatible manner + VersionMinor = 2 + // VersionPatch is for backwards-compatible bug fixes + VersionPatch = 0 + + // VersionDev indicates development branch. Releases will be empty string. + VersionDev = "" +) + +// Version is the specification version that the package types support. +var Version = fmt.Sprintf("%d.%d.%d%s", VersionMajor, VersionMinor, VersionPatch, VersionDev)