api/templates/templates.go
Function LoadPage
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func LoadPage(title string) (*gosweb.Page, error) {
if lPage, ok := WebCache.Get(title); ok {
return &lPage, nil
}
Function LoadPage
has 9 return statements (exceeds 4 allowed). Open
Open
func LoadPage(title string) (*gosweb.Page, error) {
if lPage, ok := WebCache.Get(title); ok {
return &lPage, nil
}
exported var WebCache should have comment or be unexported Open
Open
var WebCache = gosweb.NewCache()
- Exclude checks
comment on exported function LoadPage should be of the form "LoadPage ..." Open
Open
// load a page from your web root by passing the
- Exclude checks
exported function StoreNetfn should have comment or be unexported Open
Open
func StoreNetfn() int {
- Exclude checks
exported var FuncStored should have comment or be unexported Open
Open
var FuncStored = StoreNetfn()
- Exclude checks
if block ends with a return statement, so drop this else and outdent its block Open
Open
} else {
- Exclude checks
package comment should be of the form "Package templates ..." Open
Open
// File generated by Gopher Sauce
- Exclude checks
exported var TemplateFuncStore should have comment or be unexported Open
Open
var TemplateFuncStore template.FuncMap
- Exclude checks