Пример #1
0
func main() {
	defer func() {
		if r := recover(); r != nil {
			log.Println(os.Args[0], " ", r)
		}
	}()

	cmd.App().Run(os.Args)
}
Пример #2
0
func main() {
	defer func() {
		if r := recover(); r != nil {
			log.Println(os.Args[0], " ", r)
		}
	}()

	runtime.GOMAXPROCS(runtime.NumCPU())
	cmd.App().Run(os.Args)
}