api/templates/render.go
Function RenderTemplate
has 51 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func RenderTemplate(w http.ResponseWriter, p *gosweb.Page) {
defer func() {
if n := recover(); n != nil {
color.Red(fmt.Sprintf("Error loading template in path : web%s.tmpl reason : %s", p.R.URL.Path, n))
comment on exported function RenderTemplate should be of the form "RenderTemplate ..." Open
Open
// Renders an HTML response with variables provided.
- Exclude checks
package comment should be of the form "Package templates ..." Open
Open
// File generated by Gopher Sauce
- Exclude checks