code refactor
This commit is contained in:
parent
e8d907156c
commit
8feb2287cc
|
@ -29,8 +29,6 @@ var (
|
|||
conf *string
|
||||
|
||||
version = "No Version Provided"
|
||||
gitHash = "No GitHash Provided"
|
||||
buildTime = "No BuildTime Provided"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -41,8 +39,6 @@ func init() {
|
|||
|
||||
if *vers {
|
||||
fmt.Println("Version:", version)
|
||||
fmt.Println("Git Commit Hash:", gitHash)
|
||||
fmt.Println("UTC Build Time:", buildTime)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
|
@ -33,8 +33,6 @@ var (
|
|||
conf *string
|
||||
|
||||
version = "No Version Provided"
|
||||
gitHash = "No GitHash Provided"
|
||||
buildTime = "No BuildTime Provided"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -45,8 +43,6 @@ func init() {
|
|||
|
||||
if *vers {
|
||||
fmt.Println("Version:", version)
|
||||
fmt.Println("Git Commit Hash:", gitHash)
|
||||
fmt.Println("UTC Build Time:", buildTime)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@ var (
|
|||
conf *string
|
||||
|
||||
version = "No Version Provided"
|
||||
gitHash = "No GitHash Provided"
|
||||
buildTime = "No BuildTime Provided"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -42,8 +40,6 @@ func init() {
|
|||
|
||||
if *vers {
|
||||
fmt.Println("Version:", version)
|
||||
fmt.Println("Git Commit Hash:", gitHash)
|
||||
fmt.Println("UTC Build Time:", buildTime)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@ var (
|
|||
conf *string
|
||||
|
||||
version = "No Version Provided"
|
||||
gitHash = "No GitHash Provided"
|
||||
buildTime = "No BuildTime Provided"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -41,8 +39,6 @@ func init() {
|
|||
|
||||
if *vers {
|
||||
fmt.Println("Version:", version)
|
||||
fmt.Println("Git Commit Hash:", gitHash)
|
||||
fmt.Println("UTC Build Time:", buildTime)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue