MCPcopy
hub / github.com/1Panel-dev/KubePi / exit

Function exit

thirdparty/gotty/main.go:112–117  ·  view source on GitHub ↗
(err error, code int)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected