Files
wowdoc-scraper/function.tmpl
2024-11-06 00:25:20 +01:00

8 lines
356 B
Cheetah

---@diagnostic disable: missing-return, lowercase-global
{{range .Arguments -}}
---@param {{.Name}} {{.Type}} {{.Description}}
{{end -}}
{{range .Returns -}}
---@return {{.Type}} {{.Name}} {{if .Description}}#{{.Description}}{{end}}
{{end -}}
function {{.Name}}({{range $index, $param := .Arguments}}{{if $index}}, {{end}}{{$param.Name}}{{end}}) end