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 Version = "No Version Provided"
|
||||||
|
|
||||||
var usageStr = `
|
var usageStr = `
|
||||||
|
|
|
@ -8,10 +8,12 @@ import (
|
||||||
|
|
||||||
var version string
|
var version string
|
||||||
|
|
||||||
|
// SetVersion for setup version string.
|
||||||
func SetVersion(ver string) {
|
func SetVersion(ver string) {
|
||||||
version = ver
|
version = ver
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetVersion for get current version.
|
||||||
func GetVersion() string {
|
func GetVersion() string {
|
||||||
return version
|
return version
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue