From 82cb2f5246363e1d52442e9750015de5ca86fe26 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 25 Jun 2016 21:40:38 +0800 Subject: [PATCH] fix golint. Signed-off-by: Bo-Yi Wu --- gorush.go | 1 + gorush/version.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gorush.go b/gorush.go index 0245142..d4d31cb 100644 --- a/gorush.go +++ b/gorush.go @@ -19,6 +19,7 @@ func checkInput(token, message string) { } } +// Version control for gorush. var Version = "No Version Provided" var usageStr = ` diff --git a/gorush/version.go b/gorush/version.go index b7dbd08..faa0280 100644 --- a/gorush/version.go +++ b/gorush/version.go @@ -8,10 +8,12 @@ import ( var version string +// SetVersion for setup version string. func SetVersion(ver string) { version = ver } +// GetVersion for get current version. func GetVersion() string { return version }