code refactor

This commit is contained in:
Ulric Qin 2020-10-13 13:14:38 +08:00
parent e8d907156c
commit 8feb2287cc
4 changed files with 4 additions and 20 deletions

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}