feat:简化main函数
This commit is contained in:
13
controllers/daemon.go
Normal file
13
controllers/daemon.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"flag"
|
||||
)
|
||||
|
||||
func init() {
|
||||
goDaemon := flag.Bool("daemon", false, "")
|
||||
flag.Parse()
|
||||
if *goDaemon {
|
||||
Guardian()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user