Version is a package now, will be re-used across codebase.

This commit is contained in:
Harshavardhana
2015-09-17 20:06:28 -07:00
parent 1c5454e007
commit 7093a05ab1
8 changed files with 53 additions and 12 deletions

View File

@@ -27,6 +27,7 @@ import (
"github.com/dustin/go-humanize"
"github.com/minio/cli"
"github.com/minio/minio/pkg/version"
)
func init() {
@@ -80,7 +81,7 @@ func init() {
// getFormattedVersion -
func getFormattedVersion() string {
t, _ := time.Parse(time.RFC3339Nano, Version)
t, _ := time.Parse(time.RFC3339Nano, version.Version)
if t.IsZero() {
return ""
}