diff options
| author | Jeff Carr <[email protected]> | 2024-01-13 13:30:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-13 13:30:13 -0600 |
| commit | 34f33db94a04ecb24087713a87556a9672b74aa7 (patch) | |
| tree | 859cffb2deda834cc0b9050089da7e8329777e7a /nocui/common.go | |
| parent | 69ad3b12ac3f44703ae8a6c8a771af56f902252b (diff) | |
always build with GO111MODULES until stable
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'nocui/common.go')
| -rw-r--r-- | nocui/common.go | 17 |
1 files changed, 17 insertions, 0 deletions
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") |
