package ENV import "os" // this is an experiment at this point to // see how this turns out // argv normally sets these callbacks // argv has timing set from when os.Args was parsed func GoodExit(reason string, err error) { if goodExit != nil { goodExit(reason) } os.Exit(0) } func BadExit(reason string, err error) { if badExit != nil { badExit(reason, err) } os.Exit(-1) }