()
| 31 | ) |
| 32 | |
| 33 | func main() { |
| 34 | s := options.NewOptions() |
| 35 | s.AddFlags(pflag.CommandLine) |
| 36 | |
| 37 | flag.InitFlags() |
| 38 | logs.InitLogs() |
| 39 | logs.InitSummaryLogs() |
| 40 | defer logs.FlushLogs() |
| 41 | |
| 42 | verflag.PrintAndExitIfRequested() |
| 43 | logs.Infof("origin go process num %d", runtime.GOMAXPROCS(0)) |
| 44 | runtime.GOMAXPROCS(s.GoMaxProcs) |
| 45 | logs.Infof("set go process num %d", runtime.GOMAXPROCS(0)) |
| 46 | if err := app.Run(s); err != nil { |
| 47 | fmt.Fprintf(os.Stderr, "%v\n", err) |
| 48 | os.Exit(1) |
| 49 | } |
| 50 | } |
nothing calls this directly
no test coverage detected