summaryrefslogtreecommitdiff
path: root/interface.go
diff options
context:
space:
mode:
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)")
}