From c1b9c1950648ab591aef2f2dae998a2d03c8afc3 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 24 Jun 2017 12:04:00 +0800 Subject: [PATCH] refacetor main.go Signed-off-by: Bo-Yi Wu --- main.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 8dcd7ed..261a015 100644 --- a/main.go +++ b/main.go @@ -95,13 +95,15 @@ func createPIDFile() error { func main() { opts := config.ConfYaml{} - var showVersion bool - var configFile string - var topic string - var message string - var token string - var proxy string - var title string + var ( + showVersion bool + configFile string + topic string + message string + token string + proxy string + title string + ) flag.BoolVar(&showVersion, "version", false, "Print version information.") flag.BoolVar(&showVersion, "v", false, "Print version information.")