summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-13 13:30:13 -0600
committerJeff Carr <[email protected]>2024-01-13 13:30:13 -0600
commit34f33db94a04ecb24087713a87556a9672b74aa7 (patch)
tree859cffb2deda834cc0b9050089da7e8329777e7a
parent69ad3b12ac3f44703ae8a6c8a771af56f902252b (diff)
always build with GO111MODULES until stable
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--Makefile11
-rw-r--r--gocui/Makefile6
-rw-r--r--gocui/args.go2
-rwxr-xr-xgocui/gocuibin0 -> 3803590 bytes
-rw-r--r--nocui/common.go17
5 files changed, 28 insertions, 8 deletions
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
--- /dev/null
+++ b/gocui/gocui
Binary files 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")