diff options
| author | Jeff Carr <[email protected]> | 2025-10-12 04:30:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-12 04:30:43 -0500 |
| commit | 890782893d553cb6dfdb42368b75fa9e8e893ff5 (patch) | |
| tree | 74ae2c16e7d38669052eedb3508db8880dba5d87 /exit.go | |
| parent | 12195649cd8610533082d2cfb10568fe4c080a4d (diff) | |
moved formatting to lib/cobol
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,7 +5,7 @@ import ( "os" "time" - "go.wit.com/lib/config" + "go.wit.com/lib/cobol" "go.wit.com/log" ) @@ -21,7 +21,7 @@ func (pb *Auto) GoodExit(msg string) { myAuto.appExit() } dur := time.Since(pb.Ctime.AsTime()) - log.Infof("%s: %s (%s)\n", pb.Argname, msg, config.FormatDuration(dur)) + log.Infof("%s: %s (%s)\n", pb.Argname, msg, cobol.FormatDuration(dur)) os.Exit(0) } @@ -34,7 +34,7 @@ func (pb *Auto) BadExit(msg string, err error) { log.Info(err) } dur := time.Since(pb.Ctime.AsTime()) - log.Infof("%s: %s (%s)\n", pb.Argname, msg, config.FormatDuration(dur)) + log.Infof("%s: %s (%s)\n", pb.Argname, msg, cobol.FormatDuration(dur)) os.Exit(-1) } |
