diff --git a/Makefile b/Makefile index fa541fc..4066a79 100644 --- a/Makefile +++ b/Makefile @@ -16,18 +16,21 @@ ifeq ($(GO111MODULE),) @echo @echo export GO111MODULE=off @echo - sleep 3 + sleep 1 endif make nocui gocui andlabs nocui: - go build -C nocui -v -buildmode=plugin -o ../nocui.so + # go build -C nocui -v -buildmode=plugin -o ../nocui.so + make -C nocui gocui: - go build -C gocui -v -buildmode=plugin -o ../gocui.so + # go build -C gocui -v -buildmode=plugin -o ../gocui.so + make -C gocui andlabs: - go build -C andlabs -v -buildmode=plugin -o ../andlabs.so + # go build -C andlabs -v -buildmode=plugin -o ../andlabs.so + make -C andlabs something: ifeq (,$(wildcard go.mod)) diff --git a/gocui/Makefile b/gocui/Makefile index 4c24c14..fffcfa7 100644 --- a/gocui/Makefile +++ b/gocui/Makefile @@ -1,12 +1,12 @@ all: plugin ldd ../gocui.so +plugin: + GO111MODULE=off go build -v -buildmode=plugin -o ../gocui.so + goget: go get -v -t -u -plugin: - go build -v -x -buildmode=plugin -o ../gocui.so - objdump: objdump -t ../gocui.so |less diff --git a/gocui/args.go b/gocui/args.go index 71dcdde..916728a 100644 --- a/gocui/args.go +++ b/gocui/args.go @@ -5,7 +5,7 @@ package main */ import ( - log "go.wit.com/log" + "go.wit.com/log" ) var outputS []string diff --git a/gocui/gocui b/gocui/gocui new file mode 100755 index 0000000..4130e7a Binary files /dev/null and b/gocui/gocui differ diff --git a/nocui/common.go b/nocui/common.go index bd7b145..9a13323 100644 --- a/nocui/common.go +++ b/nocui/common.go @@ -42,6 +42,7 @@ type node struct { // horizontal means layout widgets like books on a bookshelf // vertical means layout widgets like books in a stack + // direction widget.Orientation direction widget.Orientation // This is how the values are passed back and forth @@ -164,6 +165,22 @@ func PluginChannel() chan widget.Action { return pluginChan } +/* +func convertString(val any) string { + switch v := val.(type) { + case bool: + n.B = val.(bool) + case string: + n.label = val.(string) + n.S = val.(string) + case int: + n.I = val.(int) + default: + log.Error(errors.New("Set() unknown type"), "v =", v) + } +} +*/ + func getString(A any) string { if A == nil { log.Warn("getString() got nil")