summaryrefslogtreecommitdiff
path: root/interface.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 00:16:26 -0500
committerJeff Carr <[email protected]>2025-10-14 00:16:26 -0500
commit660620c105f1a0a7d5e95ab6e2d4dc10113fd249 (patch)
treea3fc7c9a479eb91360be286f1b62b309713a20fb /interface.go
parent38223d25713916ae25261d7adb78c1fa0c40227d (diff)
changes for new lib/config function namesv0.0.35
Diffstat (limited to 'interface.go')
-rw-r--r--interface.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface.go b/interface.go
index 1439ec4..24f61c3 100644
--- a/interface.go
+++ b/interface.go
@@ -47,13 +47,14 @@ type exitI interface {
// Described is the interface that the destination struct should implement to
func findAppInfo(tmp interface{}) {
if tmp, ok := tmp.(appnameI); ok {
- myAuto.appName = tmp.Appname()
+ myAuto.ARGNAME = tmp.Appname()
} else {
panic("you must define in your app the function: (argv) func Appname() string")
}
if tmp, ok := tmp.(buildtimeI); ok {
myAuto.buildtime = tmp.Buildtime
+ myAuto.BUILDTIME, myAuto.VERSION = myAuto.buildtime()
} else {
// panic("your app is missing (argv) func Buildtime() (string, string)")
}