thestrukture/IDE

View on GitHub
api/templates/render.go

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Function RenderTemplate has 51 lines of code (exceeds 50 allowed). Consider refactoring.
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))

Severity: Minor
Found in api/templates/render.go - About 1 hr to fix

    comment on exported function RenderTemplate should be of the form "RenderTemplate ..."
    Open

    // Renders an HTML response with variables provided.
    Severity: Minor
    Found in api/templates/render.go by golint

    package comment should be of the form "Package templates ..."
    Open

    // File generated by Gopher Sauce
    Severity: Minor
    Found in api/templates/render.go by golint

    There are no issues that match your filters.

    Category
    Status