summaryrefslogtreecommitdiff
path: root/interface.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-16 03:59:14 -0500
committerJeff Carr <[email protected]>2025-10-16 03:59:14 -0500
commit6a62be781be462c769bb1f61198ea584284e6bed (patch)
tree73809b1b12924f3247fdc4ab6fc1809a9068c4c5 /interface.go
parent5d2788edbc203fdb3b99d073e507962cb0f0e6ac (diff)
rename that stupid variable finallyv0.0.37
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()")
}