diff options
| author | Jeff Carr <[email protected]> | 2025-10-26 08:31:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-26 08:31:13 -0500 |
| commit | 042fac23113c134b3615939b0836263fd12b3bd1 (patch) | |
| tree | b46492b135af76e0e045e887c6a5ea941516c490 /exit.go | |
| parent | cfee0dad2418f8e800d15edd3e6b32cebd1119dc (diff) | |
new argv Init()
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -15,14 +15,14 @@ import ( // also, it supports a custom Exit() back to your application func GoodExit(msg string) { - me.pb.GoodExit(msg) + PB.goodExit(msg) } func BadExit(msg string, err error) { - me.pb.BadExit(msg, err) + PB.badExit(msg, err) } -func (pb *Argv) GoodExit(msg string) { +func (pb *Argv) goodExit(msg string) { go ExitWatchdog() if me.appExit != nil { me.appExit() @@ -38,7 +38,7 @@ func (pb *Argv) GoodExit(msg string) { os.Exit(0) } -func (pb *Argv) BadExit(msg string, err error) { +func (pb *Argv) badExit(msg string, err error) { go ExitWatchdog() if me.appExit != nil { me.appExit() |
