From 34f33db94a04ecb24087713a87556a9672b74aa7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 13 Jan 2024 13:30:13 -0600 Subject: always build with GO111MODULES until stable Signed-off-by: Jeff Carr --- nocui/common.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'nocui') 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") -- cgit v1.2.3