(err error, code int)
| 110 | } |
| 111 | |
| 112 | func exit(err error, code int) { |
| 113 | if err != nil { |
| 114 | fmt.Println(err) |
| 115 | } |
| 116 | os.Exit(code) |
| 117 | } |
| 118 | |
| 119 | func waitSignals(errs chan error, cancel context.CancelFunc, gracefulCancel context.CancelFunc) error { |
| 120 | sigChan := make(chan os.Signal, 1) |