summaryrefslogtreecommitdiff
path: root/generateGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-20 06:49:41 -0600
committerJeff Carr <[email protected]>2025-02-20 06:49:41 -0600
commit261d54485cc208a5157eef23c267c5e959fcd054 (patch)
tree3df5b0e4cd7831740aa527e13294250bc79820a1 /generateGui.go
parentabd87346f586565f9cc23e7361da79ce69a38d24 (diff)
autogen gui tables workv0.0.55
Diffstat (limited to 'generateGui.go')
-rw-r--r--generateGui.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/generateGui.go b/generateGui.go
index 611ed65..8aa6b2a 100644
--- a/generateGui.go
+++ b/generateGui.go
@@ -26,7 +26,10 @@ func (pb *Files) makeGuiFile(pf *File) error {
guiStringFuncs(newf, pf.Package, pf.Bases.Name, pf.Base.Name)
for _, v := range pf.Base.Vars {
- // log.Printf("Found %s %s\n", v.VarType, v.VarName)
+ if v.IsRepeated {
+ // can't work against slices
+ continue
+ }
if v.VarType == "string" {
log.Printf("make Add function here %s %s %s\n", pf.Bases.Name, pf.Base.Name, v.VarName)
guiAddFunc(newf, pf.Bases.Name, pf.Base.Name, v.VarName)
@@ -37,10 +40,6 @@ func (pb *Files) makeGuiFile(pf *File) error {
if !v.HasSort {
continue
}
- if v.IsRepeated {
- // can't work against slices
- continue
- }
if v.VarType != "string" {
continue
}
@@ -111,7 +110,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {
fmt.Fprintln(w, "")
fmt.Fprintln(w, "func (mt *"+FRUITS+"Table) ShowTable() {")
fmt.Fprintln(w, " log.Info(\"ShowTable() SENDING TO GUI\")")
- fmt.Fprintln(w, " // mt.MakeTable()")
+ fmt.Fprintln(w, " mt.MakeTable()")
fmt.Fprintln(w, " gui.ShowTable(mt.pb)")
fmt.Fprintln(w, "}")
fmt.Fprintln(w, "")