Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func Context() context.Context Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Context ¶ func Context() context.Context Context returns a context which will be canceled when either the SIGINT (windows and non windows) or SIGTERM (non windows) signal is caught. If either signal is caught a second time, the program is terminated immediately with exit code 1. Types ¶ This section is empty. Source Files ¶ View all Source files signals.go signals_posix.go Click to show internal directories. Click to hide internal directories.