notes about the purpose of those functions
This commit is contained in:
parent
737c5b7b90
commit
0ccf2c09a4
|
@ -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, "")
|
||||
|
|
Loading…
Reference in New Issue