summaryrefslogtreecommitdiff
path: root/generateFind.go
diff options
context:
space:
mode:
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")