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!
Golint is a linter for Go source code.
-
colors/constants.go
- Line 4: warning: exported const Reset should have comment (or a comment on this block) or be unexported (golint)
-
colors/functions.go
- Line 8: warning: exported type Message should have comment or be unexported (golint)
- Line 10: warning: exported function Custom should have comment or be unexported (golint)
- Line 63: warning: exported function Underline should have comment or be unexported (golint)
- Line 67: warning: exported function Bold should have comment or be unexported (golint)
- Line 71: warning: exported function Flash should have comment or be unexported (golint)
- Line 75: warning: exported function Inverse should have comment or be unexported (golint)
- Line 79: warning: exported function Panic should have comment or be unexported (golint)
- Line 83: warning: exported function Highlight should have comment or be unexported (golint)
- Line 87: warning: exported function Important should have comment or be unexported (golint)
- Line 91: warning: exported function Success should have comment or be unexported (golint)
- Line 95: warning: exported function Info should have comment or be unexported (golint)
- Line 99: warning: exported function Warn should have comment or be unexported (golint)
- Line 103: warning: exported function Error should have comment or be unexported (golint)
- Line 107: warning: exported function Green should have comment or be unexported (golint)
- Line 111: warning: exported function Blue should have comment or be unexported (golint)
- Line 115: warning: exported function Magenta should have comment or be unexported (golint)
- Line 119: warning: exported function Red should have comment or be unexported (golint)
- Line 123: warning: exported function Black should have comment or be unexported (golint)
- Line 127: warning: exported function Cyan should have comment or be unexported (golint)
- Line 131: warning: exported function White should have comment or be unexported (golint)
- Line 135: warning: exported function Yellow should have comment or be unexported (golint)
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.
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!