summaryrefslogtreecommitdiff
path: root/generateFind.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-11 04:41:14 -0600
committerJeff Carr <[email protected]>2025-01-11 04:41:14 -0600
commitfed674d04a07207d3bceecae43ddcf3c183d4c71 (patch)
treefb9c00ec3ca9020385ddcce776d6fe719b44c849 /generateFind.go
parent0edc28106a070e7dbb07079c51a3e84da137bfae (diff)
maybe ready to git tag
Diffstat (limited to 'generateFind.go')
-rw-r--r--generateFind.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/generateFind.go b/generateFind.go
index f2ecff1..1174efa 100644
--- a/generateFind.go
+++ b/generateFind.go
@@ -18,8 +18,8 @@ func (msg *MsgName) getLockname(s string) string {
return msg.Lockname
}
-func (msg *MsgName) findBy(w io.Writer, FRUIT, APPLES, APPLE, COLOR, LOCK string) {
- fmt.Fprintln(w, "// lookup a", FRUIT, "by the ", COLOR, msg.Lockname, msg.Name)
+func generateFindBy(w io.Writer, FRUIT, APPLES, APPLE, COLOR, LOCK string) {
+ fmt.Fprintln(w, "// lookup a", FRUIT, "by the ", COLOR)
fmt.Fprintln(w, "func (x *"+FRUIT+") FindBy"+COLOR+"(s string) *"+APPLE+" {")
fmt.Fprintln(w, " if x == nil {")
fmt.Fprintln(w, " return nil")