fblook/main.go

35 lines
467 B
Go
Raw Normal View History

2018-09-21 14:58:41 +00:00
package main
import (
"flag"
"log"
"git.trj.tw/golang/fblook/module/background"
"git.trj.tw/golang/fblook/module/config"
"git.trj.tw/golang/fblook/module/options"
)
func init() {
options.RegFlag()
flag.Parse()
}
func main() {
cc := make(chan bool, 0)
runOptions := options.GetFlag()
if runOptions.Help {
flag.Usage()
return
}
err := config.LoadConfig(runOptions.Config)
if err != nil {
log.Fatal(err)
}
background.SetBackground()
<-cc
}