fix golint.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
ea79208bab
commit
82cb2f5246
|
@ -19,6 +19,7 @@ func checkInput(token, message string) {
|
|||
}
|
||||
}
|
||||
|
||||
// Version control for gorush.
|
||||
var Version = "No Version Provided"
|
||||
|
||||
var usageStr = `
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue