Init is equivalent to InitWithSignals with SIGINT, SIGPIPE, and SIGTERM.
(all ...Initializer)
| 35 | |
| 36 | // Init is equivalent to InitWithSignals with SIGINT, SIGPIPE, and SIGTERM. |
| 37 | func (f *Flags) Init(all ...Initializer) (context.Context, context.CancelFunc, error) { |
| 38 | return f.InitWithSignals(all, syscall.SIGINT, syscall.SIGPIPE, syscall.SIGTERM) |
| 39 | } |
| 40 | |
| 41 | // InitWithSignals handles the flags defined in SetFlags, calls the Init method |
| 42 | // for each element of all, and returns a context canceled when any signal in |
no test coverage detected