From 890782893d553cb6dfdb42368b75fa9e8e893ff5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 Oct 2025 04:30:43 -0500 Subject: moved formatting to lib/cobol --- exit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exit.go') diff --git a/exit.go b/exit.go index 6643b64..5d629e3 100644 --- a/exit.go +++ b/exit.go @@ -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) } -- cgit v1.2.3