Skip to content

invalid-template

Default severity: error

Checks constant templates in direct template.New(...).Parse(...) chains. Receivers that may use custom delimiters are left alone.

template.New("greeting").Parse(`Hello, {{.Name}`) // reported
template.New("greeting").Parse(`Hello, {{.Name}}`)