summaryrefslogtreecommitdiff
path: root/generate.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-10 02:59:32 -0500
committerJeff Carr <[email protected]>2025-10-10 02:59:32 -0500
commitdcb04361546732abf90748a04ddd5eeba262bd3a (patch)
tree863a547c483fd9018163f12952afd6796f9898d3 /generate.go
parent21730b70fe54fde434a403f1e1fef0e362132c67 (diff)
make Append() and Clone() as seperate thingsv0.5.22v0.5.21
Diffstat (limited to 'generate.go')
-rw-r--r--generate.go16
1 files changed, 2 insertions, 14 deletions
diff --git a/generate.go b/generate.go
index 739e87e..c2287b9 100644
--- a/generate.go
+++ b/generate.go
@@ -166,7 +166,6 @@ func (pb *Files) makeNewSortfile(pf *File) error {
log.Printf("Adding %s\n", funcdef)
}
if PARENT == VARNAME {
- // FUNCNAME := "Append"
funcdef := msg.simpleAppend(wSort, PARENT, v.VarName, v.VarType)
log.Printf("Adding %s\n", funcdef)
@@ -237,7 +236,7 @@ func (pb *Files) makeNewSortfile(pf *File) error {
}
}
- // add Find() Delete() Append() Insert()
+ // add Find() Delete() Insert()
for _, s := range pf.ToSort {
PARENT := s.MsgName
VARNAME := s.VarName
@@ -326,7 +325,7 @@ func (pb *Files) makeNewSortfile(pf *File) error {
}
}
- // AppendBy() functions. todo: fix these so Append() is for simple things and Insert() is for unique keys
+ // AppendBy() functions. todo: make Insert() for unique
var ucount int
for _, v := range msg.Vars {
if v.VarType != "string" {
@@ -394,14 +393,3 @@ func (pf *File) allMsg() []*MsgName {
}
return all
}
-
-/*
-func (pf *File) specialBases(wFind io.Writer) {
- var FRUIT string = cases.Title(language.English, cases.NoLower).String(pf.Bases.Name)
- var APPLES string = cases.Title(language.English, cases.NoLower).String(pf.Bases.Name)
- var APPLE string = cases.Title(language.English, cases.NoLower).String(pf.Base.Name)
-
- pf.Bases.simpleAppend(wFind, FRUIT, APPLES, APPLE)
-
-}
-*/