summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2022-11-06 12:59:24 -0600
committerJeff Carr <[email protected]>2022-11-06 12:59:24 -0600
commite55fb6675d692e3f44fa67b02b12661e476bd028 (patch)
treec16084dea9779f5ef244adb3937d33adb17e7bad /node.go
parent099efb6b24caf9eaad50d7386636a7ac23552bde (diff)
start trying to make the tookits pluginsv0.4.3
totally minimize helloworld demo try to make a button plugin example debug changes final changes before attempting to use a golang plugin actually running gocui as a plugin add gocli-as-plugin example try to convert the go-cui toolkit into a plugin doc updates make a minimal console gui Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'node.go')
-rw-r--r--node.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/node.go b/node.go
index d1b172a..57ad65d 100644
--- a/node.go
+++ b/node.go
@@ -1,8 +1,5 @@
package gui
-import "strconv"
-// import "fmt"
-
/*
generic function to create a new node on the binary tree
*/
@@ -25,9 +22,12 @@ func addNode(title string, w int, h int) *Node {
n.Width = w
n.Height = h
- id := Config.prefix + strconv.Itoa(Config.counter)
+ // no longer a string
+ // id := Config.prefix + strconv.Itoa(Config.counter)
+ // n.id = id
+
+ n.id = Config.counter
Config.counter += 1
- n.id = id
return &n
}