diff options
| author | Jeff Carr <[email protected]> | 2025-01-11 04:41:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-11 04:41:14 -0600 |
| commit | fed674d04a07207d3bceecae43ddcf3c183d4c71 (patch) | |
| tree | fb9c00ec3ca9020385ddcce776d6fe719b44c849 /generateFind.go | |
| parent | 0edc28106a070e7dbb07079c51a3e84da137bfae (diff) | |
maybe ready to git tag
Diffstat (limited to 'generateFind.go')
| -rw-r--r-- | generateFind.go | 4 |
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") |
