From 1e0aad926ff80a8f832f04e23e0dae79d2bdec1a Mon Sep 17 00:00:00 2001
From: Benjamin Bollen <ben@erisindustries.com>
Date: Fri, 13 May 2016 22:16:46 +0200
Subject: [PATCH] start construction of versioning

Signed-off-by: Benjamin Bollen <ben@erisindustries.com>
---
 version/version.go | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/version/version.go b/version/version.go
index 13fc2b94..c8a0fab9 100644
--- a/version/version.go
+++ b/version/version.go
@@ -16,5 +16,25 @@
 
 package version
 
+import (
+  "fmt"
+)
+
 const VERSION = "0.12.0"
 const TENDERMINT_VERSION = "0.6.0"
+
+const (
+  // Client identifier to advertise over the network
+  clientIdentifier = "eris-db"
+  // Major version component of the current release
+  versionMajor     = 0
+  // Minor version component of the current release
+  versionMinor     = 12
+  // Patch version component of the current release
+  versionPatch     = 0
+)
+
+func GetVersionString() string {
+  return fmt.Sprintf("%s-%d.%d.%d", clientIdentifier, versionMajor, versionMinor,
+    versionPatch)
+}
-- 
GitLab