lang: core, funcs: Rename things for consistency

Seems we had different patterns going on. This makes those all
consistent now.
This commit is contained in:
James Shubin
2025-03-26 19:06:20 -04:00
parent 30aca74089
commit 8ff187b4e9
8 changed files with 41 additions and 42 deletions

View File

@@ -112,8 +112,7 @@ func generateTemplate(c config, f functions, path, templateFile, finalName strin
func (obj *function) MakeGolangArgs() (string, error) {
var args []string
for i, a := range obj.Args {
input := fmt.Sprintf("input[%d]", i)
gol, err := a.ToGolang(input)
gol, err := a.ToGolang(fmt.Sprintf("args[%d]", i))
if err != nil {
return "", err
}