summaryrefslogtreecommitdiff
path: root/exit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 08:31:13 -0500
committerJeff Carr <[email protected]>2025-10-26 08:31:13 -0500
commit042fac23113c134b3615939b0836263fd12b3bd1 (patch)
treeb46492b135af76e0e045e887c6a5ea941516c490 /exit.go
parentcfee0dad2418f8e800d15edd3e6b32cebd1119dc (diff)
new argv Init()
Diffstat (limited to 'exit.go')
-rw-r--r--exit.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/exit.go b/exit.go
index 4bffade..72d3271 100644
--- a/exit.go
+++ b/exit.go
@@ -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()