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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
bitcoinmath/base58.go
- Line 20: warning: comment on exported type Base58 should be of the form "Base58 ..." (with optional leading article) (golint)
- Line 33: warning: comment on exported method Base58.ToBig should be of the form "ToBig ..." (golint)
- Line 43: warning: comment on exported method Base58.ToInt should be of the form "ToInt ..." (golint)
- Line 53: warning: comment on exported method Base58.ToHex should be of the form "ToHex ..." (golint)
- Line 63: warning: exported method Base58.Base582Big should have comment or be unexported (golint)
- Line 72: warning: comment on exported method Base58.Base582Int should be of the form "Base582Int ..." (golint)
- Line 82: warning: comment on exported function Base582Hex should be of the form "Base582Hex ..." (golint)
- Line 87: warning: comment on exported method Base58.BitHex should be of the form "BitHex ..." (golint)
- Line 104: warning: comment on exported function Big2Base58 should be of the form "Big2Base58 ..." (golint)
- Line 126: warning: comment on exported function Int2Base58 should be of the form "Int2Base58 ..." (golint)
- Line 150: warning: comment on exported function Hex2Base58 should be of the form "Hex2Base58 ..." (golint)
- Line 167: warning: exported function Hex2Base58String should have comment or be unexported (golint)
- Line 171: warning: exported function Hex2Base58Str should have comment or be unexported (golint)
- Line 175: warning: comment on exported function StringHex2Base58 should be of the form "StringHex2Base58 ..." (golint)
- Line 193: warning: exported function StrHex2Base58 should have comment or be unexported (golint)
- Line 197: warning: exported function String2Base58 should have comment or be unexported (golint)
- Line 210: warning: exported function Str2Hex58 should have comment or be unexported (golint)
- Line 214: warning: comment on exported function TestBase58 should be of the form "TestBase58 ..." (golint)
-
bitcoinmath/mymath.go
- Line 21: warning: exported function SplitStrings should have comment or be unexported (golint)
- Line 25: warning: exported function String2Float should have comment or be unexported (golint)
- Line 30: warning: exported function Str2Float should have comment or be unexported (golint)
- Line 34: warning: exported function Float642String should have comment or be unexported (golint)
- Line 38: warning: exported function Float642Str should have comment or be unexported (golint)
- Line 42: warning: exported function Int642String should have comment or be unexported (golint)
- Line 46: warning: exported function Int642Str should have comment or be unexported (golint)
- Line 50: warning: exported function Int2Str should have comment or be unexported (golint)
- Line 54: warning: exported function Int2String should have comment or be unexported (golint)
- Line 57: warning: exported function Int2Hex should have comment or be unexported (golint)
- Line 61: warning: exported function Str2Uint32 should have comment or be unexported (golint)
- Line 65: warning: exported function Str2Int64 should have comment or be unexported (golint)
- Line 74: warning: exported function ToUpper should have comment or be unexported (golint)
- Line 78: warning: exported function ToLower should have comment or be unexported (golint)
- Line 82: warning: exported function AreStringsEqual should have comment or be unexported (golint)
- Line 94: warning: exported function AreHexesEqual should have comment or be unexported (golint)
- Line 106: warning: exported function RandomHex should have comment or be unexported (golint)
- Line 118: warning: exported function Hex2Int should have comment or be unexported (golint)
- Line 131: warning: exported function Hex2Uint64 should have comment or be unexported (golint)
- Line 147: warning: exported function Hex2Uint32 should have comment or be unexported (golint)
- Line 163: warning: exported function HexRev2Uint64 should have comment or be unexported (golint)
- Line 167: warning: exported function HexRev2Uint32 should have comment or be unexported (golint)
- Line 171: warning: comment on exported function Rev should be of the form "Rev ..." (golint)
- Line 180: warning: exported function RevWords should have comment or be unexported (golint)
- Line 191: warning: exported function RevWordsStr should have comment or be unexported (golint)
- Line 194: warning: exported function RevWords2Str should have comment or be unexported (golint)
- Line 198: warning: exported function RevWords2 should have comment or be unexported (golint)
- Line 209: warning: exported function Hex2Big should have comment or be unexported (golint)
- Line 220: warning: exported function HexRev2Big should have comment or be unexported (golint)
- Line 238: warning: exported function Big2HexPadded should have comment or be unexported (golint)
- Line 250: warning: comment on exported function Big2Hex should be of the form "Big2Hex ..." (golint)
- Line 255: warning: comment on exported function Big2HexRev should be of the form "Big2HexRev ..." (golint)
- Line 260: warning: exported function String2Hex32 should have comment or be unexported (golint)
- Line 268: warning: exported function String2Hex should have comment or be unexported (golint)
- Line 273: warning: exported function Str2Hex should have comment or be unexported (golint)
- Line 277: warning: exported function String2HexRev should have comment or be unexported (golint)
- Line 282: warning: exported function Str2HexRev should have comment or be unexported (golint)
- Line 286: warning: comment on exported function String2BigBase should be of the form "String2BigBase ..." (golint)
- Line 293: warning: comment on exported function Str2BigBase should be of the form "Str2BigBase ..." (golint)
- Line 298: warning: comment on exported function String2Big should be of the form "String2Big ..." (golint)
- Line 303: warning: comment on exported function Str2Big should be of the form "Str2Big ..." (golint)
- Line 308: warning: comment on exported function ASCII2Hex should be of the form "ASCII2Hex ..." (golint)
- Line 312: warning: exported function ASCII2HexRev should have comment or be unexported (golint)
- Line 316: warning: exported function Hex2String should have comment or be unexported (golint)
- Line 320: warning: exported function Hex2Str should have comment or be unexported (golint)
- Line 324: warning: exported function HexRev2String should have comment or be unexported (golint)
- Line 328: warning: exported function HexRev2Str should have comment or be unexported (golint)
- Line 332: warning: exported function Uint322Hex should have comment or be unexported (golint)
- Line 345: warning: exported function Uint322HexRev should have comment or be unexported (golint)
- Line 358: warning: exported function Uint642Hex should have comment or be unexported (golint)
- Line 379: warning: exported function Uint642HexRev should have comment or be unexported (golint)
- Line 400: warning: exported function Uint162Hex should have comment or be unexported (golint)
- Line 409: warning: exported function Uint162HexRev should have comment or be unexported (golint)
- Line 418: warning: comment on exported function Uint2Hex should be of the form "Uint2Hex ..." (golint)
- Line 434: warning: comment on exported function Int2BitHex should be of the form "Int2BitHex ..." (golint)
- Line 458: warning: exported function Int642Hex should have comment or be unexported (golint)
- Line 473: warning: exported function Hex2Int64 should have comment or be unexported (golint)
- Line 486: warning: exported function Randuint64 should have comment or be unexported (golint)
- Line 502: warning: exported function Randuint64Rev should have comment or be unexported (golint)
- Line 518: warning: exported function ConcatBytes should have comment or be unexported (golint)
- Line 533: warning: exported function AddByte should have comment or be unexported (golint)
- Line 543: warning: exported function Byte2String should have comment or be unexported (golint)
- Line 549: warning: comment on exported function TestEverything should be of the form "TestEverything ..." (golint)
- Line 561: warning: exported function RevTest 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