From 0ccf2c09a4eb66b01e414f149f205c7af058f0bb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 17 Sep 2025 01:08:51 -0500 Subject: [PATCH] notes about the purpose of those functions --- generateGui.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generateGui.go b/generateGui.go index b782e3e..22d687a 100644 --- a/generateGui.go +++ b/generateGui.go @@ -127,6 +127,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " return t") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") + fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter") fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddStringFunc(title string, f func(*"+FRUIT+") string) *"+FRUIT+"AnyFunc {") fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)") fmt.Fprintln(w, "") @@ -143,6 +144,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " return sf") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") + fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter") fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddButtonFunc(title string, f func(*"+FRUIT+") string) *"+FRUIT+"AnyFunc {") fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)") fmt.Fprintln(w, "") @@ -160,6 +162,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " return sf") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") + fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter") fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddIntFunc(title string, f func(*"+FRUIT+") int) *"+FRUIT+"AnyFunc {") fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)") fmt.Fprintln(w, "") @@ -176,6 +179,7 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) { fmt.Fprintln(w, " return sf") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") + fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter") fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddTimeFunc(title string, f func(*"+FRUIT+") time.Time) *"+FRUIT+"AnyFunc {") fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)") fmt.Fprintln(w, "")