Add template and saving functions

This commit is contained in:
2024-11-05 23:58:59 +01:00
parent fd8395fec1
commit cf7675ad23
2 changed files with 50 additions and 3 deletions

2
function.tmpl Normal file
View File

@@ -0,0 +1,2 @@
---@diagnostic disable: missing-return, lowercase-global
function {{.Name}}({{range $index, $param := .Params}}{{if $index}}, {{end}}{{$param.Name}}: {{$param.Type}}{{end}}) end