Preparing report...

Report for github.com/skygangsta/go-helper

(v0.0.0-20191013041235-792ac5c0b6e3)

A    Great!    Found 24 issues across 27 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

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!


gocyclo100%

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!


golint11%

Golint is a linter for Go source code.

    • go-helper/file.go
    • Line 10: warning: exported var File should have comment or be unexported (golint)
    • Line 12: warning: exported type FileHelper should have comment or be unexported (golint)
    • Line 14: warning: exported function NewFileHelper should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method FileHelper.CopyFile should be of the form "CopyFile ..." (golint)
    • Line 30: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: comment on exported method FileHelper.GZipFile should be of the form "GZipFile ..." (golint)
    • Line 57: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 94: warning: exported method FileHelper.Save should have comment or be unexported (golint)
    • Line 94: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/http.go
    • Line 27: warning: exported var Http should have comment or be unexported (golint)
    • Line 29: warning: exported type HttpHelper should have comment or be unexported (golint)
    • Line 34: warning: exported function NewHttpHelper should have comment or be unexported (golint)
    • Line 56: warning: exported method HttpHelper.Do should have comment or be unexported (golint)
    • Line 56: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 61: warning: exported method HttpHelper.NewRequest should have comment or be unexported (golint)
    • Line 61: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 79: warning: exported method HttpHelper.Get should have comment or be unexported (golint)
    • Line 79: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 104: warning: exported method HttpHelper.Post should have comment or be unexported (golint)
    • Line 104: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 129: warning: exported method HttpHelper.PostForm should have comment or be unexported (golint)
    • Line 129: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 156: warning: exported method HttpHelper.RemoteAddr should have comment or be unexported (golint)
    • Line 156: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/algo/triple_des.go
    • Line 24: warning: exported type TripleDES should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function NewTripleDES should be of the form "NewTripleDES ..." (golint)
    • Line 51: warning: comment on exported method TripleDES.TripleDESInit should be of the form "TripleDESInit ..." (golint)
    • Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 92: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 103: warning: comment on exported method TripleDES.GetBlock should be of the form "GetBlock ..." (golint)
    • Line 108: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 112: warning: comment on exported method TripleDES.GetBlockSize should be of the form "GetBlockSize ..." (golint)
    • Line 117: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 121: warning: comment on exported method TripleDES.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 127: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 155: warning: comment on exported method TripleDES.Decrypt should be of the form "Decrypt ..." (golint)
    • Line 161: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 197: warning: comment on exported method TripleDES.EncryptToHexString should be of the form "EncryptToHexString ..." (golint)
    • Line 200: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 207: warning: comment on exported method TripleDES.DecryptFromHexString should be of the form "DecryptFromHexString ..." (golint)
    • Line 210: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 220: warning: comment on exported method TripleDES.EncryptToBase64String should be of the form "EncryptToBase64String ..." (golint)
    • Line 223: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 230: warning: comment on exported method TripleDES.DecryptFromBase64String should be of the form "DecryptFromBase64String ..." (golint)
    • Line 233: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 247: warning: comment on exported method TripleDES.CBCEncrypt should be of the form "CBCEncrypt ..." (golint)
    • Line 253: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 277: warning: comment on exported method TripleDES.CBCDecrypt should be of the form "CBCDecrypt ..." (golint)
    • Line 283: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 304: warning: comment on exported method TripleDES.CBCEncryptToHexString should be of the form "CBCEncryptToHexString ..." (golint)
    • Line 307: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 319: warning: comment on exported method TripleDES.CBCDecryptFromHexString should be of the form "CBCDecryptFromHexString ..." (golint)
    • Line 322: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 339: warning: comment on exported method TripleDES.CBCEncryptToBase64String should be of the form "CBCEncryptToBase64String ..." (golint)
    • Line 342: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 354: warning: comment on exported method TripleDES.CBCDecryptFromBase64String should be of the form "CBCDecryptFromBase64String ..." (golint)
    • Line 357: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/algo/sha.go
    • Line 24: warning: exported type Sha should have comment or be unexported (golint)
    • Line 26: warning: exported function NewSha should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method Sha.Md5 should be of the form "Md5 ..." (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 38: warning: exported method Sha.Md5ToHexString should have comment or be unexported (golint)
    • Line 38: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 42: warning: exported method Sha.Md5ToBase64String should have comment or be unexported (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 46: warning: comment on exported method Sha.Sha1 should be of the form "Sha1 ..." (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 54: warning: exported method Sha.Sha1ToHexString should have comment or be unexported (golint)
    • Line 54: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 58: warning: exported method Sha.Sha1ToBase64String should have comment or be unexported (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 62: warning: comment on exported method Sha.Sha256 should be of the form "Sha256 ..." (golint)
    • Line 63: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 70: warning: exported method Sha.Sha256ToHexString should have comment or be unexported (golint)
    • Line 70: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 74: warning: exported method Sha.Sha256ToBase64String should have comment or be unexported (golint)
    • Line 74: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 78: warning: comment on exported method Sha.Sha512 should be of the form "Sha512 ..." (golint)
    • Line 79: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 86: warning: exported method Sha.Sha512ToHexString should have comment or be unexported (golint)
    • Line 86: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 90: warning: exported method Sha.Sha512ToBase64String should have comment or be unexported (golint)
    • Line 90: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/algo/aes.go
    • Line 23: warning: exported type AES should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function NewAES should be of the form "NewAES ..." (golint)
    • Line 50: warning: comment on exported method AES.AESInit should be of the form "AESInit ..." (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: comment on exported method AES.GetBlock should be of the form "GetBlock ..." (golint)
    • Line 85: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 89: warning: comment on exported method AES.GetBlockSize should be of the form "GetBlockSize ..." (golint)
    • Line 94: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 98: warning: comment on exported method AES.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 106: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 134: warning: comment on exported method AES.Decrypt should be of the form "Decrypt ..." (golint)
    • Line 142: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 178: warning: comment on exported method AES.EncryptToHexString should be of the form "EncryptToHexString ..." (golint)
    • Line 186: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 193: warning: comment on exported method AES.DecryptFromHexString should be of the form "DecryptFromHexString ..." (golint)
    • Line 202: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 212: warning: comment on exported method AES.EncryptToBase64String should be of the form "EncryptToBase64String ..." (golint)
    • Line 220: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 227: warning: comment on exported method AES.DecryptFromBase64String should be of the form "DecryptFromBase64String ..." (golint)
    • Line 236: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 250: warning: comment on exported method AES.CBCEncrypt should be of the form "CBCEncrypt ..." (golint)
    • Line 258: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 282: warning: comment on exported method AES.CBCDecrypt should be of the form "CBCDecrypt ..." (golint)
    • Line 290: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 311: warning: comment on exported method AES.CBCEncryptToHexString should be of the form "CBCEncryptToHexString ..." (golint)
    • Line 319: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 331: warning: comment on exported method AES.CBCDecryptFromHexString should be of the form "CBCDecryptFromHexString ..." (golint)
    • Line 340: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 357: warning: comment on exported method AES.CBCEncryptToBase64String should be of the form "CBCEncryptToBase64String ..." (golint)
    • Line 365: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 377: warning: comment on exported method AES.CBCDecryptFromBase64String should be of the form "CBCDecryptFromBase64String ..." (golint)
    • Line 386: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/algo/padding.go
    • Line 19: warning: exported function ZeroPadding should have comment or be unexported (golint)
    • Line 25: warning: exported function UnZeroPadding should have comment or be unexported (golint)
    • Line 46: warning: comment on exported function PKCS5Padding should be of the form "PKCS5Padding ..." (golint)
    • Line 63: warning: exported function UnPKCS5Padding should have comment or be unexported (golint)
    • Line 70: warning: exported function PKCS7Padding should have comment or be unexported (golint)
    • Line 78: warning: don't use underscores in Go names; var slice_length should be sliceLength (golint)
    • go-helper/byte.go
    • Line 19: warning: exported type ByteHelper should have comment or be unexported (golint)
    • Line 21: warning: exported function NewByteHelper should have comment or be unexported (golint)
    • Line 25: warning: exported method ByteHelper.Byte2Hex should have comment or be unexported (golint)
    • Line 25: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: exported method ByteHelper.Hex2Byte should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 84: warning: exported method ByteHelper.Byte2Bin should have comment or be unexported (golint)
    • Line 84: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 102: warning: exported method ByteHelper.Bin2Byte should have comment or be unexported (golint)
    • Line 102: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/console_color.go
    • Line 15: warning: exported var ConsoleColor should have comment or be unexported (golint)
    • Line 17: warning: exported type ConsoleColorHelper should have comment or be unexported (golint)
    • Line 19: warning: exported function NewConsoleColorHelper should have comment or be unexported (golint)
    • Line 23: warning: exported method ConsoleColorHelper.White should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 27: warning: exported method ConsoleColorHelper.Red should have comment or be unexported (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 31: warning: exported method ConsoleColorHelper.Green should have comment or be unexported (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 35: warning: exported method ConsoleColorHelper.Yello should have comment or be unexported (golint)
    • Line 35: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 39: warning: exported method ConsoleColorHelper.Blue should have comment or be unexported (golint)
    • Line 39: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: exported method ConsoleColorHelper.Magenta should have comment or be unexported (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: exported method ConsoleColorHelper.Cyan should have comment or be unexported (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 51: warning: exported method ConsoleColorHelper.Clear should have comment or be unexported (golint)
    • Line 51: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: exported method ConsoleColorHelper.WhiteBackground should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: exported method ConsoleColorHelper.RedBackground should have comment or be unexported (golint)
    • Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 63: warning: exported method ConsoleColorHelper.GreenBackground should have comment or be unexported (golint)
    • Line 63: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 67: warning: exported method ConsoleColorHelper.YelloBackground should have comment or be unexported (golint)
    • Line 67: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 71: warning: exported method ConsoleColorHelper.BlueBackground should have comment or be unexported (golint)
    • Line 71: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 75: warning: exported method ConsoleColorHelper.MagentaBackground should have comment or be unexported (golint)
    • Line 75: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 79: warning: exported method ConsoleColorHelper.CyanBackground should have comment or be unexported (golint)
    • Line 79: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 83: warning: comment on exported method ConsoleColorHelper.GrayBackground should be of the form "GrayBackground ..." (golint)
    • Line 84: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/path.go
    • Line 23: warning: exported var Path should have comment or be unexported (golint)
    • Line 25: warning: exported type PathHelper should have comment or be unexported (golint)
    • Line 27: warning: exported function NewPathHelper should have comment or be unexported (golint)
    • Line 31: warning: exported method PathHelper.ExecPath should have comment or be unexported (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 44: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 49: warning: exported method PathHelper.WorkName should have comment or be unexported (golint)
    • Line 49: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 54: warning: comment on exported method PathHelper.IsExist should be of the form "IsExist ..." (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 68: warning: exported method PathHelper.Create should have comment or be unexported (golint)
    • Line 68: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 82: warning: exported method PathHelper.Abs should have comment or be unexported (golint)
    • Line 82: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 86: warning: exported method PathHelper.Dir should have comment or be unexported (golint)
    • Line 86: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 95: warning: exported method PathHelper.FileName should have comment or be unexported (golint)
    • Line 95: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 112: warning: exported method PathHelper.Split should have comment or be unexported (golint)
    • Line 112: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 118: warning: exported method PathHelper.CreateDir should have comment or be unexported (golint)
    • Line 118: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/time.go
    • Line 20: warning: exported var Time should have comment or be unexported (golint)
    • Line 22: warning: exported type TimeHelper should have comment or be unexported (golint)
    • Line 24: warning: exported function NewTimeHelper should have comment or be unexported (golint)
    • Line 32: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 87: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 93: warning: comment on exported method TimeHelper.DefaultFormat should be of the form "DefaultFormat ..." (golint)
    • Line 94: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 99: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 105: warning: comment on exported method TimeHelper.ConvertLocation should be of the form "ConvertLocation ..." (golint)
    • Line 106: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/algo/des.go
    • Line 23: warning: exported type DES should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function NewDES should be of the form "NewDES ..." (golint)
    • Line 48: warning: comment on exported method DES.DESInit should be of the form "DESInit ..." (golint)
    • Line 56: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 77: warning: comment on exported method DES.GetBlock should be of the form "GetBlock ..." (golint)
    • Line 82: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 86: warning: comment on exported method DES.GetBlockSize should be of the form "GetBlockSize ..." (golint)
    • Line 91: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 95: warning: comment on exported method DES.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 101: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 129: warning: comment on exported method DES.Decrypt should be of the form "Decrypt ..." (golint)
    • Line 135: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 171: warning: comment on exported method DES.EncryptToHexString should be of the form "EncryptToHexString ..." (golint)
    • Line 174: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 181: warning: comment on exported method DES.DecryptFromHexString should be of the form "DecryptFromHexString ..." (golint)
    • Line 184: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 194: warning: comment on exported method DES.EncryptToBase64String should be of the form "EncryptToBase64String ..." (golint)
    • Line 197: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 204: warning: comment on exported method DES.DecryptFromBase64String should be of the form "DecryptFromBase64String ..." (golint)
    • Line 207: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 221: warning: comment on exported method DES.CBCEncrypt should be of the form "CBCEncrypt ..." (golint)
    • Line 227: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 251: warning: comment on exported method DES.CBCDecrypt should be of the form "CBCDecrypt ..." (golint)
    • Line 257: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 278: warning: comment on exported method DES.CBCEncryptToHexString should be of the form "CBCEncryptToHexString ..." (golint)
    • Line 281: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 293: warning: comment on exported method DES.CBCDecryptFromHexString should be of the form "CBCDecryptFromHexString ..." (golint)
    • Line 296: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 313: warning: comment on exported method DES.CBCEncryptToBase64String should be of the form "CBCEncryptToBase64String ..." (golint)
    • Line 316: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 328: warning: comment on exported method DES.CBCDecryptFromBase64String should be of the form "CBCDecryptFromBase64String ..." (golint)
    • Line 331: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/orm/postgres.go
    • Line 18: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 23: warning: exported type Postgres should have comment or be unexported (golint)
    • Line 39: warning: exported function NewPostgres should have comment or be unexported (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 66: warning: exported method Postgres.DriverName should have comment or be unexported (golint)
    • Line 66: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 70: warning: exported method Postgres.ConnString should have comment or be unexported (golint)
    • Line 70: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 84: warning: exported method Postgres.Connect should have comment or be unexported (golint)
    • Line 84: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/orm/redis.go
    • Line 21: warning: exported type Redis should have comment or be unexported (golint)
    • Line 33: warning: exported function NewRedis should have comment or be unexported (golint)
    • Line 37: warning: exported method Redis.Connect should have comment or be unexported (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/orm/sqlite3.go
    • Line 17: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 20: warning: exported type SQLite3 should have comment or be unexported (golint)
    • Line 25: warning: exported function NewSqlite3 should have comment or be unexported (golint)
    • Line 29: warning: exported method SQLite3.DriverName should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: warning: exported method SQLite3.Connect should have comment or be unexported (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/rand.go
    • Line 22: warning: exported var Rand should have comment or be unexported (golint)
    • Line 24: warning: exported type RandHelper should have comment or be unexported (golint)
    • Line 26: warning: exported function NewRandHelper should have comment or be unexported (golint)
    • Line 30: warning: exported method RandHelper.Num should have comment or be unexported (golint)
    • Line 30: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: comment on exported method RandHelper.Bytes should be of the form "Bytes ..." (golint)
    • Line 44: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/string.go
    • Line 15: warning: exported var String should have comment or be unexported (golint)
    • Line 17: warning: exported type StringHelper should have comment or be unexported (golint)
    • Line 19: warning: exported function NewStringHelper should have comment or be unexported (golint)
    • Line 23: warning: exported method StringHelper.Empty should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 27: warning: exported method StringHelper.IsEmpty should have comment or be unexported (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 31: warning: exported method StringHelper.IsNotEmpty should have comment or be unexported (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 35: warning: exported method StringHelper.IsEqual should have comment or be unexported (golint)
    • Line 35: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: exported method StringHelper.IsNotEqual should have comment or be unexported (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/struct_map.go
    • Line 20: warning: exported type StructMapHelper should have comment or be unexported (golint)
    • Line 25: warning: exported function NewStructMapHelper should have comment or be unexported (golint)
    • Line 29: warning: exported method StructMapHelper.MapString should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: warning: exported method StructMapHelper.ToMap should have comment or be unexported (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: exported method StructMapHelper.FromMap should have comment or be unexported (golint)
    • Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 82: warning: exported method StructMapHelper.ToMapString should have comment or be unexported (golint)
    • Line 82: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 109: warning: exported method StructMapHelper.FromMapString should have comment or be unexported (golint)
    • Line 109: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/algo/hmac.go
    • Line 23: warning: exported type HMac should have comment or be unexported (golint)
    • Line 27: warning: exported function NewHMac should have comment or be unexported (golint)
    • Line 31: warning: exported method HMac.Sha256 should have comment or be unexported (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 37: warning: exported method HMac.Md5 should have comment or be unexported (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: exported method HMac.Sha512 should have comment or be unexported (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/algo/rsa.go
    • Line 25: warning: exported type RSA should have comment or be unexported (golint)
    • Line 33: warning: exported function NewRSA should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method RSA.PublicKeyEncrypt should be of the form "PublicKeyEncrypt ..." (golint)
    • Line 38: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: comment on exported method RSA.PrivateKeyDecrypt should be of the form "PrivateKeyDecrypt ..." (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 110: warning: comment on exported method RSA.Sign should be of the form "Sign ..." (golint)
    • Line 111: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 150: warning: exported method RSA.ParsePKCS1PublicKey should have comment or be unexported (golint)
    • Line 150: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 164: warning: exported method RSA.ParsePKCS1PrivateKey should have comment or be unexported (golint)
    • Line 164: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 178: warning: exported method RSA.GenerateKeyWithBits should have comment or be unexported (golint)
    • Line 178: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 198: warning: exported method RSA.GeneratePrivateKey should have comment or be unexported (golint)
    • Line 198: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 221: warning: exported method RSA.GeneratePublicKey should have comment or be unexported (golint)
    • Line 221: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/orm/mysql.go
    • Line 17: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 23: warning: exported type MySQL should have comment or be unexported (golint)
    • Line 38: warning: exported function NewMySQL should have comment or be unexported (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 65: warning: exported method MySQL.DriverName should have comment or be unexported (golint)
    • Line 65: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 69: warning: exported method MySQL.ConnString should have comment or be unexported (golint)
    • Line 69: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 81: warning: exported method MySQL.Connect should have comment or be unexported (golint)
    • Line 81: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/buffer.go
    • Line 34: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 46: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/exec.go
    • Line 8: warning: exported var Exec should have comment or be unexported (golint)
    • Line 10: warning: exported type ExecHelper should have comment or be unexported (golint)
    • Line 12: warning: exported function NewExecHelper should have comment or be unexported (golint)
    • Line 16: warning: exported method ExecHelper.Run should have comment or be unexported (golint)
    • Line 16: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-helper/algo/rsa_ext.go
    • Line 1: warning: package comment should be of the form "Package algo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 20: warning: exported var ErrDataToLarge should have comment or be unexported (golint)
    • Line 168: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 190: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 212: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 231: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!