diff options
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() |
