summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2022-11-06 19:57:20 -0600
committerJeff Carr <[email protected]>2022-11-06 19:57:20 -0600
commitb410d0fd083ee89eed410cda2123a22cddcd3f44 (patch)
tree3f1a637003629a3ec7d383b5db6beb0df9e5a97c /main.go
parente55fb6675d692e3f44fa67b02b12661e476bd028 (diff)
Implement a early AddButton() via a golang pluginv0.4.5
pass a name to gocui.AddButton() cleaner plugin usage add the start to golang plugin plugin stuff in a single file added a button correctly andlabs/ui added a button via plugin to gocli hot diggity! trying to invoke a gocli plugin function from the andlabs ui load the plugin hide more debugging output turn off all output Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index 30eb6a7..e3e6609 100644
--- a/main.go
+++ b/main.go
@@ -29,10 +29,15 @@ func init() {
if (Config.Options.Debug) {
Config.master.Dump()
}
+
+ // load the gocli plugin
+ PlugGocli = LoadPlugin("../../toolkit/gocli.so")
}
func Main(f func()) {
- log.Println("Starting gui.Main() (using gtk via andlabs/ui)")
+ if (Config.Options.Debug) {
+ log.Println("Starting gui.Main() (using gtk via andlabs/ui)")
+ }
toolkit.Main(f)
}