refacetor main.go

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-06-24 12:04:00 +08:00
parent a7a633bed1
commit c1b9c19506
No known key found for this signature in database
GPG Key ID: 0F84B2110C500B1F
1 changed files with 9 additions and 7 deletions

16
main.go
View File

@ -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.")