summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-06 15:31:44 -0600
committerJeff Carr <[email protected]>2025-01-06 15:31:44 -0600
commit3a3c1de9dec92e93e51147880fdce404041b47c6 (patch)
treeff6e36e456ece75d735dc2ff62afa2d340d9666a /init.go
parent83dc576be0ad0d61920708822ffd79ea6d44b7b8 (diff)
don't init this until neededv0.22.20v0.22.19v0.22.18v0.22.17
Diffstat (limited to 'init.go')
-rw-r--r--init.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.go b/init.go
index c8b4df5..f17adfd 100644
--- a/init.go
+++ b/init.go
@@ -13,7 +13,7 @@ import (
// const Xaxis = 0 // stack things horizontally
// const Yaxis = 1 // stack things vertically
-func init() {
+func initNew() {
log.Log(INFO, "init() has been run")
me.counter = 0
@@ -257,6 +257,7 @@ func New() *Node {
}
*/
+ initNew()
return me.rootNode
}