Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
go vet
examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.
No problems detected. Good job!
Gocyclo calculates cyclomatic complexities of functions in Go source code.
The cyclomatic complexity of a function is calculated according to the following rules:
1 is the base complexity of a function
+1 for each 'if', 'for', 'case', '&&' or '||'
Go Report Card warns on functions with cyclomatic complexity > 15.
Golint is a linter for Go source code.
-
cachemap/cache.go
- Line 12: warning: comment on exported type Attr_tpl should be of the form "Attr_tpl ..." (with optional leading article) (golint)
- Line 13: warning: don't use underscores in Go names; type Attr_tpl should be AttrTpl (golint)
- Line 24: warning: comment on exported type Item_tpl should be of the form "Item_tpl ..." (with optional leading article) (golint)
- Line 25: warning: don't use underscores in Go names; type Item_tpl should be ItemTpl (golint)
- Line 35: warning: comment on exported type Cache_tpl should be of the form "Cache_tpl ..." (with optional leading article) (golint)
- Line 36: warning: don't use underscores in Go names; type Cache_tpl should be CacheTpl (golint)
- Line 41: warning: don't use underscores in Go names; type cache_tpl should be cacheTpl (golint)
- Line 265: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
- Line 286: warning: comment on exported function New_tpl should be of the form "New_tpl ..." (golint)
- Line 292: warning: don't use underscores in Go names; func New_tpl should be NewTpl (golint)
-
cachemap/valtyp.go
- Line 3: warning: don't use underscores in Go names; type ValueType_tpl should be ValueTypeTpl (golint)
- Line 3: warning: exported type ValueType_tpl should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!