From ce1745d37a24bf95f70463e558d792419b37de6f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Oct 2025 10:42:40 -0500 Subject: notsure. need to redo this still --- interface.go | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'interface.go') diff --git a/interface.go b/interface.go index a21a0b4..166eb14 100644 --- a/interface.go +++ b/interface.go @@ -1,6 +1,9 @@ package argvpb -import "go.wit.com/log" +import ( + "go.wit.com/lib/cobol" + "go.wit.com/log" +) // this is a work in progress @@ -83,7 +86,11 @@ type exitI interface { func findAppInfo(tmp interface{}) { // THIS STUFF IS FINALIZED FOR NOW 2025/10/18 (review in a few months) if tmp, ok := tmp.(initArgvI); ok { - me.ARGNAME, me.BUILDTIME, me.VERSION = tmp.InitArgv() + var anyTime string + var err error + me.ARGNAME, anyTime, me.VERSION = tmp.InitArgv() + me.BUILDTIME, err = cobol.GetTime(anyTime) + _ = err } else { panic("you must define in your app the function: (args) func InitArgv() (string, string, string)") } @@ -135,12 +142,14 @@ func findAppInfo(tmp interface{}) { // panic("you must define in your app the function: (argv) func Appname() string") } - if tmp, ok := tmp.(buildtimeI); ok { - me.buildtime = tmp.Buildtime - me.BUILDTIME, me.VERSION = me.buildtime() - } else { - // panic("your app is missing (argv) func Buildtime() (string, string)") - } + /* + if tmp, ok := tmp.(buildtimeI); ok { + me.buildtime = tmp.Buildtime + me.BUILDTIME, me.VERSION = me.buildtime() + } else { + // panic("your app is missing (argv) func Buildtime() (string, string)") + } + */ if tmp, ok := tmp.(examplesI); ok { me.examples = tmp.Examples -- cgit v1.2.3