summaryrefslogtreecommitdiff
path: root/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'interface.go')
-rw-r--r--interface.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/interface.go b/interface.go
index 24f61c3..0a8b784 100644
--- a/interface.go
+++ b/interface.go
@@ -47,42 +47,42 @@ 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.ARGNAME = tmp.Appname()
+ me.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()
+ 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 {
- myAuto.examples = tmp.Examples
+ me.examples = tmp.Examples
}
if tmp, ok := tmp.(guiI); ok {
- myAuto.guiFunc = tmp.ArgvGui
+ me.guiFunc = tmp.ArgvGui
} else {
// panic("you must add this function to argv.go: (argv) func ArgvGui() error")
}
if tmp, ok := tmp.(autoFuncI); ok {
- myAuto.autoFunc = tmp.DoAutoComplete
+ me.autoFunc = tmp.DoAutoComplete
} else {
// panic("you need to make the function argv.DoAutoComplete()")
}
if tmp, ok := tmp.(sendCompletionStringsI); ok {
- myAuto.autoFunc = tmp.SendCompletionStrings
+ me.autoFunc = tmp.SendCompletionStrings
} else {
// panic("you need to make the function argv.DoAutoComplete()")
}
if tmp, ok := tmp.(exitI); ok {
- myAuto.appExit = tmp.Exit
+ me.appExit = tmp.Exit
} else {
// panic("you need to make the function argv.Exit()")
}