Preparing report...

Report for github.com/chennqqi/goutils

A    Great!    Found 63 issues across 83 files

Tweet

gofmt86%

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


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!


gocyclo96%

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.

    • goutils/safeurl/url.go
    • Line 165: warning: cyclomatic complexity 26 of function unescape() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 19 of function shouldEscape() is high (> 15) (gocyclo)
    • Line 445: warning: cyclomatic complexity 16 of function parse() is high (> 15) (gocyclo)

golint27%

Golint is a linter for Go source code.

    • goutils/consul/app.go
    • Line 20: warning: exported type ConsulApp should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function ReadTxt should be of the form "ReadTxt ..." (golint)
    • Line 41: warning: comment on exported function NewAppWithCustomCfg should be of the form "NewAppWithCustomCfg ..." (golint)
    • Line 111: warning: comment on exported function NewAppWithCfgEx should be of the form "NewAppWithCfgEx ..." (golint)
    • Line 193: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 215: warning: comment on exported function NewAppWithCfg should be of the form "NewAppWithCfg ..." (golint)
    • Line 222: warning: comment on exported function NewApp should be of the form "NewApp ..." (golint)
    • Line 255: warning: comment on exported method ConsulApp.Wait should be of the form "Wait ..." (golint)
    • goutils/eslite/elasticv2.go
    • Line 11: warning: exported type ElasticClientV2 should have comment or be unexported (golint)
    • Line 16: warning: comment on exported method ElasticClientV2.Open should be of the form "Open ..." (golint)
    • Line 60: warning: comment on exported method ElasticClientV2.Begin should be of the form "Begin ..." (golint)
    • Line 65: warning: comment on exported method ElasticClientV2.Commit should be of the form "Commit ..." (golint)
    • Line 81: warning: comment on exported method ElasticClientV2.Close should be of the form "Close ..." (golint)
    • Line 86: warning: comment on exported method ElasticClientV2.WriteDirect should be of the form "WriteDirect ..." (golint)
    • Line 93: warning: comment on exported method ElasticClientV2.SetPipeline should be of the form "SetPipeline ..." (golint)
    • goutils/security/des.go
    • Line 11: warning: comment on exported function PKCS5Padding should be of the form "PKCS5Padding ..." (golint)
    • Line 18: warning: comment on exported function PKCS5Unpadding should be of the form "PKCS5Unpadding ..." (golint)
    • Line 25: warning: exported function DesEncrypt should have comment or be unexported (golint)
    • Line 47: warning: exported function DesDecrypt should have comment or be unexported (golint)
    • Line 71: warning: comment on exported function TripleEcbDesEncrypt should be of the form "TripleEcbDesEncrypt ..." (golint)
    • Line 101: warning: comment on exported function TripleEcbDesDecrypt should be of the form "TripleEcbDesDecrypt ..." (golint)
    • goutils/security/rsa.go
    • Line 12: warning: comment on exported function RsaEncrypt should be of the form "RsaEncrypt ..." (golint)
    • Line 26: warning: comment on exported function RsaDecrypt should be of the form "RsaDecrypt ..." (golint)
    • Line 39: warning: comment on exported function GenRsaKey should be of the form "GenRsaKey ..." (golint)
    • goutils/safeurl/url.go
    • Line 5: warning: package comment should be of the form "Package safeurl ..." (golint)
    • Line 31: warning: exported method Error.Timeout should have comment or be unexported (golint)
    • Line 40: warning: exported method Error.Temporary should have comment or be unexported (golint)
    • Line 80: warning: exported type EscapeError should have comment or be unexported (golint)
    • Line 86: warning: exported type InvalidHostError should have comment or be unexported (golint)
    • goutils/net/net_linux.go
    • Line 1: warning: package comment should be of the form "Package net ..." (golint)
    • Line 15: warning: exported function GetDefaultGateway should have comment or be unexported (golint)
    • Line 48: warning: exported function GetGatewayByNic should have comment or be unexported (golint)
    • Line 80: warning: exported function ListGateway should have comment or be unexported (golint)
    • goutils/ginutils/gin.go
    • Line 12: warning: exported var ErrNotExist should have comment or be unexported (golint)
    • Line 14: warning: exported function GetQueryInt should have comment or be unexported (golint)
    • Line 24: warning: exported function GetQueryInt64 should have comment or be unexported (golint)
    • Line 34: warning: exported function GetQueryfloat should have comment or be unexported (golint)
    • Line 45: warning: exported function GetQueryfloat64 should have comment or be unexported (golint)
    • Line 55: warning: exported function GetQueryBoolean should have comment or be unexported (golint)
    • Line 70: warning: exported function GetHeaderInt should have comment or be unexported (golint)
    • Line 80: warning: exported function GetHeaderInt64 should have comment or be unexported (golint)
    • Line 90: warning: exported function GetHeaderfloat should have comment or be unexported (golint)
    • Line 100: warning: exported function GetHeaderfloat64 should have comment or be unexported (golint)
    • Line 110: warning: exported function GetHeaderBoolean should have comment or be unexported (golint)
    • goutils/shmqueue/countersem.go
    • Line 3: warning: exported type CounterSem should have comment or be unexported (golint)
    • Line 9: warning: exported type CounterSemphore should have comment or be unexported (golint)
    • Line 11: warning: exported function NewCounterSem should have comment or be unexported (golint)
    • Line 21: warning: exported method CounterSemphore.Take should have comment or be unexported (golint)
    • Line 26: warning: exported method CounterSemphore.Give should have comment or be unexported (golint)
    • Line 38: warning: exported method CounterSemphore.Destroy should have comment or be unexported (golint)
    • goutils/shmqueue/queue2.go
    • Line 8: warning: exported type ShmQueue2 should have comment or be unexported (golint)
    • Line 26: warning: exported function NewShmQueue2 should have comment or be unexported (golint)
    • goutils/utime/time.go
    • Line 9: warning: exported var DefaultFormat should have comment or be unexported (golint)
    • Line 12: warning: exported type Duration should have comment or be unexported (golint)
    • Line 13: warning: exported type Time should have comment or be unexported (golint)
    • Line 19: warning: exported method Duration.Duration should have comment or be unexported (golint)
    • Line 23: warning: exported method Duration.MarshalYAML should have comment or be unexported (golint)
    • Line 27: warning: exported method Duration.UnmarshalYAML should have comment or be unexported (golint)
    • Line 41: warning: exported method Duration.MarshalJSON should have comment or be unexported (golint)
    • Line 47: warning: exported method Duration.UnmarshalJSON should have comment or be unexported (golint)
    • Line 62: warning: exported method Time.MarshalJSON should have comment or be unexported (golint)
    • Line 73: warning: exported method Time.UnmarshalJSON should have comment or be unexported (golint)
    • Line 90: warning: exported method Time.FromTime should have comment or be unexported (golint)
    • goutils/consul.v2/consul.go
    • Line 18: warning: exported var ErrNotExist should have comment or be unexported (golint)
    • Line 22: warning: exported type ConsulOperator should have comment or be unexported (golint)
    • Line 31: warning: exported type ConsulAppInfo should have comment or be unexported (golint)
    • Line 47: warning: exported function ParseConsulUrl should have comment or be unexported (golint)
    • Line 77: warning: exported function NewConsulOp should have comment or be unexported (golint)
    • Line 89: warning: exported method ConsulOperator.Fix should have comment or be unexported (golint)
    • Line 118: warning: exported method ConsulOperator.Ping should have comment or be unexported (golint)
    • Line 134: warning: exported method ConsulOperator.Get should have comment or be unexported (golint)
    • Line 148: warning: exported method ConsulOperator.GetEx should have comment or be unexported (golint)
    • Line 162: warning: exported method ConsulOperator.Put should have comment or be unexported (golint)
    • Line 173: warning: exported method ConsulOperator.Delete should have comment or be unexported (golint)
    • Line 180: warning: exported method ConsulOperator.Acquire should have comment or be unexported (golint)
    • Line 199: warning: exported method ConsulOperator.Release should have comment or be unexported (golint)
    • Line 212: warning: exported method ConsulOperator.RegisterService should have comment or be unexported (golint)
    • Line 234: warning: exported method ConsulOperator.DeregisterService should have comment or be unexported (golint)
    • Line 240: warning: exported method ConsulOperator.PrintServices should have comment or be unexported (golint)
    • Line 255: warning: exported method ConsulOperator.ListService should have comment or be unexported (golint)
    • Line 262: warning: exported method ConsulOperator.ListServices should have comment or be unexported (golint)
    • goutils/net/net.go
    • Line 19: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type Size should be of the form "Size ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported type Stat should be of the form "Stat ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported function GetExternalIP should be of the form "GetExternalIP ..." (golint)
    • Line 47: warning: comment on exported function Inet_ntoa should be of the form "Inet_ntoa ..." (golint)
    • Line 48: warning: don't use underscores in Go names; func Inet_ntoa should be InetNtoa (golint)
    • Line 58: warning: comment on exported function Inet_aton should be of the form "Inet_aton ..." (golint)
    • Line 59: warning: don't use underscores in Go names; func Inet_aton should be InetAton (golint)
    • Line 77: warning: comment on exported function IsPublicIP should be of the form "IsPublicIP ..." (golint)
    • Line 97: warning: comment on exported function GetHostIP should be of the form "GetHostIP ..." (golint)
    • Line 111: warning: comment on exported function GetInternalIP should be of the form "GetInternalIP ..." (golint)
    • Line 128: warning: comment on exported function GetRequestIP should be of the form "GetRequestIP ..." (golint)
    • Line 145: warning: comment on exported function GetInternalIPByDevName should be of the form "GetInternalIPByDevName ..." (golint)
    • Line 163: warning: comment on exported function GetUploadFileSize should be of the form "GetUploadFileSize ..." (golint)
    • Line 176: warning: comment on exported function GetLocalConnectIP should be of the form "GetLocalConnectIP ..." (golint)
    • Line 195: warning: exported type RouteItem should have comment or be unexported (golint)
    • Line 210: warning: exported type NSServer should have comment or be unexported (golint)
    • Line 212: warning: exported type NSServers should have comment or be unexported (golint)
    • Line 217: warning: exported function NetHexToIPv4 should have comment or be unexported (golint)
    • goutils/utils/zip.go
    • Line 13: warning: exported const DEFAULT_UNZIP_LIMIT should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported function Unzip should have comment or be unexported (golint)
    • Line 74: warning: exported function ZipSize should have comment or be unexported (golint)
    • Line 82: warning: exported function UnzipSafe should have comment or be unexported (golint)
    • Line 126: warning: exported function ScanZip should have comment or be unexported (golint)
    • Line 182: warning: exported function ScanZipM should have comment or be unexported (golint)
    • goutils/utils/version.go
    • Line 7: warning: exported type VersionInt should have comment or be unexported (golint)
    • Line 14: warning: exported function NewVersionInt should have comment or be unexported (golint)
    • Line 26: warning: exported method VersionInt.GreatThan should have comment or be unexported (golint)
    • Line 42: warning: exported method VersionInt.Equal should have comment or be unexported (golint)
    • Line 46: warning: exported method VersionInt.Compatible should have comment or be unexported (golint)
    • Line 50: warning: exported method VersionInt.LessThan should have comment or be unexported (golint)
    • goutils/eslite/elasticv1.go
    • Line 12: warning: exported type ElasticClientV1 should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method ElasticClientV1.Open should be of the form "Open ..." (golint)
    • Line 63: warning: comment on exported method ElasticClientV1.Begin should be of the form "Begin ..." (golint)
    • Line 68: warning: comment on exported method ElasticClientV1.Commit should be of the form "Commit ..." (golint)
    • Line 84: warning: comment on exported method ElasticClientV1.Close should be of the form "Close ..." (golint)
    • Line 88: warning: comment on exported method ElasticClientV1.WriteDirect should be of the form "WriteDirect ..." (golint)
    • Line 95: warning: comment on exported method ElasticClientV1.SetPipeline should be of the form "SetPipeline ..." (golint)
    • goutils/c/md5_cgo.go
    • Line 19: warning: exported function MD5FileByC should have comment or be unexported (golint)
    • Line 30: warning: exported function MD5FileByCEx should have comment or be unexported (golint)
    • goutils/netperf/perf.go
    • Line 1: warning: package comment should be of the form "Package netperf ..." (golint)
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 9: warning: exported function ListenAndServe should have comment or be unexported (golint)
    • goutils/mysqldump/mysqldump.go
    • Line 1: warning: package comment should be of the form "Package mysqldump ..." (golint)
    • Line 15: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 20: warning: exported const TypeCSV should have comment (or a comment on this block) or be unexported (golint)
    • Line 208: warning: exported type TypeFlag should have comment or be unexported (golint)
    • Line 210: warning: exported type DumpOpt should have comment or be unexported (golint)
    • Line 221: warning: exported function MysqlDump should have comment or be unexported (golint)
    • goutils/net/ns_linux.go
    • Line 27: warning: exported function GetRhNsByNic should have comment or be unexported (golint)
    • Line 54: warning: exported function GetLocalNS should have comment or be unexported (golint)
    • goutils/utils/file.go
    • Line 12: warning: exported var ErrUserQuit should have comment or be unexported (golint)
    • Line 21: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 28: warning: comment on exported function DoListDir should be of the form "DoListDir ..." (golint)
    • Line 51: warning: comment on exported function DoListDirEx should be of the form "DoListDirEx ..." (golint)
    • Line 76: warning: comment on exported function ListDir should be of the form "ListDir ..." (golint)
    • Line 100: warning: comment on exported function DoWalkDir should be of the form "DoWalkDir ..." (golint)
    • Line 123: warning: comment on exported function WalkDir should be of the form "WalkDir ..." (golint)
    • Line 150: warning: exported function PathExists should have comment or be unexported (golint)
    • Line 155: warning: exported function PathExists2 should have comment or be unexported (golint)
    • goutils/hash/md5/md5.go
    • Line 20: warning: exported var ErrOpenFileError should have comment or be unexported (golint)
    • Line 22: warning: exported function MD5FileByC should have comment or be unexported (golint)
    • Line 33: warning: exported function MD5FileByGo should have comment or be unexported (golint)
    • goutils/eslite/elasticv7.go
    • Line 20: warning: comment on exported method ElasticClientV7.Open should be of the form "Open ..." (golint)
    • Line 64: warning: comment on exported method ElasticClientV7.Begin should be of the form "Begin ..." (golint)
    • Line 69: warning: comment on exported method ElasticClientV7.Commit should be of the form "Commit ..." (golint)
    • Line 85: warning: comment on exported method ElasticClientV7.Close should be of the form "Close ..." (golint)
    • Line 90: warning: comment on exported method ElasticClientV7.WriteDirect should be of the form "WriteDirect ..." (golint)
    • Line 97: warning: comment on exported method ElasticClientV7.SetPipeline should be of the form "SetPipeline ..." (golint)
    • goutils/utils/app.go
    • Line 10: warning: comment on exported function ApplicationName should be of the form "ApplicationName ..." (golint)
    • goutils/utils/net.go
    • Line 17: warning: comment on exported type Size should be of the form "Size ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type Stat should be of the form "Stat ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported function GetExternalIP should be of the form "GetExternalIP ..." (golint)
    • Line 42: warning: exported function Inet_ntoa should have comment or be unexported (golint)
    • Line 42: warning: don't use underscores in Go names; func Inet_ntoa should be InetNtoa (golint)
    • Line 52: warning: exported function Inet_aton should have comment or be unexported (golint)
    • Line 52: warning: don't use underscores in Go names; func Inet_aton should be InetAton (golint)
    • Line 70: warning: exported function IsPublicIP should have comment or be unexported (golint)
    • Line 89: warning: comment on exported function GetHostIP should be of the form "GetHostIP ..." (golint)
    • Line 103: warning: comment on exported function GetInternalIP should be of the form "GetInternalIP ..." (golint)
    • Line 120: warning: comment on exported function GetRequestIP should be of the form "GetRequestIP ..." (golint)
    • Line 137: warning: comment on exported function GetInternalIPByDevName should be of the form "GetInternalIPByDevName ..." (golint)
    • Line 155: warning: comment on exported function GetUploadFileSize should be of the form "GetUploadFileSize ..." (golint)
    • Line 168: warning: comment on exported function GetLocalConnectIP should be of the form "GetLocalConnectIP ..." (golint)
    • goutils/simpleredis/redis.go
    • Line 1: warning: package comment should be of the form "Package simpleredis ..." (golint)
    • Line 12: warning: exported type Storage should have comment or be unexported (golint)
    • Line 18: warning: exported type StorageRedis should have comment or be unexported (golint)
    • Line 23: warning: exported method StorageRedis.Open should have comment or be unexported (golint)
    • Line 36: warning: exported method StorageRedis.Close should have comment or be unexported (golint)
    • Line 40: warning: exported method StorageRedis.Save should have comment or be unexported (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • goutils/eslite/elasticv5.go
    • Line 12: warning: exported type ElasticClientV5 should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method ElasticClientV5.Open should be of the form "Open ..." (golint)
    • Line 64: warning: comment on exported method ElasticClientV5.Begin should be of the form "Begin ..." (golint)
    • Line 69: warning: comment on exported method ElasticClientV5.Commit should be of the form "Commit ..." (golint)
    • Line 85: warning: comment on exported method ElasticClientV5.Close should be of the form "Close ..." (golint)
    • Line 90: warning: comment on exported method ElasticClientV5.WriteDirect should be of the form "WriteDirect ..." (golint)
    • Line 97: warning: comment on exported method ElasticClientV5.SetPipeline should be of the form "SetPipeline ..." (golint)
    • goutils/security/aes.go
    • Line 11: warning: exported function PKCS7Padding should have comment or be unexported (golint)
    • Line 17: warning: exported function PKCS7UnPadding should have comment or be unexported (golint)
    • Line 23: warning: exported function AesEncrypt should have comment or be unexported (golint)
    • Line 36: warning: exported function AesDecrypt should have comment or be unexported (golint)
    • goutils/wmi/x_test.go
    • Line 100: warning: don't use underscores in Go names; type Win32_IP4RouteTable should be Win32IP4RouteTable (golint)
    • Line 121: warning: don't use underscores in Go names; type Win32_NetworkAdapterConfiguration should be Win32NetworkAdapterConfiguration (golint)
    • Line 185: warning: don't use underscores in Go names; type Win32_NetworkAdapter should be Win32NetworkAdapter (golint)
    • Line 228: warning: don't use underscores in Go names; type MicrosoftDNS_Domain should be MicrosoftDNSDomain (golint)
    • Line 234: warning: don't use underscores in Go names; type MicrosoftDNS_Server should be MicrosoftDNSServer (golint)
    • goutils/consul/consul.go
    • Line 17: warning: exported var ErrNotExist should have comment or be unexported (golint)
    • Line 21: warning: exported const CONSUL_HEALTH_PATH should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type ConsulOperator should have comment or be unexported (golint)
    • Line 38: warning: exported type ConsulAppInfo should have comment or be unexported (golint)
    • Line 50: warning: exported function ParseConsulUrl should have comment or be unexported (golint)
    • Line 74: warning: exported function NewConsulOp should have comment or be unexported (golint)
    • Line 81: warning: exported method ConsulOperator.Fix should have comment or be unexported (golint)
    • Line 110: warning: exported method ConsulOperator.Ping should have comment or be unexported (golint)
    • Line 126: warning: exported method ConsulOperator.Get should have comment or be unexported (golint)
    • Line 140: warning: exported method ConsulOperator.GetEx should have comment or be unexported (golint)
    • Line 154: warning: exported method ConsulOperator.Put should have comment or be unexported (golint)
    • Line 165: warning: exported method ConsulOperator.Delete should have comment or be unexported (golint)
    • Line 172: warning: exported method ConsulOperator.Acquire should have comment or be unexported (golint)
    • Line 191: warning: exported method ConsulOperator.Release should have comment or be unexported (golint)
    • Line 204: warning: exported method ConsulOperator.RegisterService should have comment or be unexported (golint)
    • Line 225: warning: exported method ConsulOperator.DeregisterService should have comment or be unexported (golint)
    • Line 231: warning: exported method ConsulOperator.PrintServices should have comment or be unexported (golint)
    • Line 246: warning: exported method ConsulOperator.ListService should have comment or be unexported (golint)
    • Line 253: warning: exported method ConsulOperator.ListServices should have comment or be unexported (golint)
    • goutils/time/time.go
    • Line 8: warning: exported type Duration should have comment or be unexported (golint)
    • Line 10: warning: exported method Duration.MarshalYAML should have comment or be unexported (golint)
    • Line 14: warning: exported method Duration.UnmarshalYAML should have comment or be unexported (golint)
    • Line 28: warning: exported method Duration.MarshalJSON should have comment or be unexported (golint)
    • Line 38: warning: exported method Duration.UnmarshalJSON should have comment or be unexported (golint)
    • goutils/yamlconfig/yaml.go
    • Line 1: warning: package comment should be of the form "Package yamlconfig ..." (golint)
    • Line 15: warning: comment on exported function Load should be of the form "Load ..." (golint)
    • Line 32: warning: comment on exported function LoadMem should be of the form "LoadMem ..." (golint)
    • Line 40: warning: comment on exported function Save should be of the form "Save ..." (golint)
    • goutils/upx/elf.go
    • Line 1: warning: package comment should be of the form "Package upx ..." (golint)
    • Line 11: warning: exported function IsElfUpxed should have comment or be unexported (golint)
    • goutils/net/ns_cache.go
    • Line 13: warning: exported const CACHE_IP_MAX should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type NSCache should have comment or be unexported (golint)
    • Line 20: warning: exported function NewNsCache should have comment or be unexported (golint)
    • Line 30: warning: exported method NSCache.Fetch should have comment or be unexported (golint)
    • Line 40: warning: exported method NSCache.FetchOne should have comment or be unexported (golint)
    • Line 48: warning: exported method NSCache.FetchOneString should have comment or be unexported (golint)
    • Line 56: warning: exported method NSCache.Refresh should have comment or be unexported (golint)
    • Line 61: warning: should omit 2nd value from range; this loop is equivalent to `for key := range ...` (golint)
    • Line 72: warning: exported method NSCache.Lookup should have comment or be unexported (golint)
    • goutils/persistlist/nodb.go
    • Line 1: warning: package comment should be of the form "Package persistlist ..." (golint)
    • Line 16: warning: exported const DEFAULT_KEYNAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported var ErrNil should have comment or be unexported (golint)
    • Line 21: warning: exported type PersistList should have comment or be unexported (golint)
    • Line 35: warning: exported function NewNodbList should have comment or be unexported (golint)
    • goutils/eslite/elasticgo.go
    • Line 12: warning: exported type ElasticGoClient should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method ElasticGoClient.Open should be of the form "Open ..." (golint)
    • Line 42: warning: comment on exported method ElasticGoClient.Begin should be of the form "Begin ..." (golint)
    • Line 63: warning: comment on exported method ElasticGoClient.Commit should be of the form "Commit ..." (golint)
    • Line 69: warning: comment on exported method ElasticGoClient.Close should be of the form "Close ..." (golint)
    • Line 74: warning: comment on exported method ElasticGoClient.WriteDirect should be of the form "WriteDirect ..." (golint)
    • Line 81: warning: comment on exported method ElasticGoClient.SetPipeline should be of the form "SetPipeline ..." (golint)
    • goutils/eslite/es.go
    • Line 1: warning: package comment should be of the form "Package eslite ..." (golint)
    • Line 13: warning: comment on exported type ESLite should be of the form "ESLite ..." (with optional leading article) (golint)
    • goutils/simplesyslog/syslog.go
    • Line 28: warning: comment on exported method SyslogAgent.Initialize should be of the form "Initialize ..." (golint)
    • Line 40: warning: don't use underscores in Go names; var con_err should be conErr (golint)
    • Line 47: warning: don't use underscores in Go names; var err_hn should be errHn (golint)
    • Line 79: warning: don't use underscores in Go names; var full_message should be fullMessage (golint)
    • Line 85: warning: exported method SyslogAgent.Forward should have comment or be unexported (golint)
    • Line 89: warning: exported method SyslogAgent.Fd should have comment or be unexported (golint)
    • goutils/net/dial.go
    • Line 20: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 25: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 32: warning: exported function UpdateResolveList should have comment or be unexported (golint)
    • Line 36: warning: exported function OverrideDefaultResolver should have comment or be unexported (golint)
    • goutils/fs/file.go
    • Line 12: warning: exported function IsSymLink should have comment or be unexported (golint)
    • Line 22: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 29: warning: comment on exported function DoListDir should be of the form "DoListDir ..." (golint)
    • Line 52: warning: comment on exported function DoListDirEx should be of the form "DoListDirEx ..." (golint)
    • Line 77: warning: comment on exported function ListDir should be of the form "ListDir ..." (golint)
    • Line 100: warning: exported function DoWalkDir should have comment or be unexported (golint)
    • Line 122: warning: comment on exported function WalkDir should be of the form "WalkDir ..." (golint)
    • Line 149: warning: exported function PathExists should have comment or be unexported (golint)
    • Line 154: warning: exported function PathExists2 should have comment or be unexported (golint)
    • goutils/shmqueue/binarysem.go
    • Line 3: warning: exported type BinarySem should have comment or be unexported (golint)
    • Line 9: warning: exported type BinarySemphore should have comment or be unexported (golint)
    • Line 11: warning: exported function NewBinarySem should have comment or be unexported (golint)
    • Line 17: warning: exported method BinarySemphore.Take should have comment or be unexported (golint)
    • Line 22: warning: exported method BinarySemphore.Give should have comment or be unexported (golint)
    • Line 34: warning: exported method BinarySemphore.Destroy should have comment or be unexported (golint)
    • goutils/c/md5.go
    • Line 11: warning: exported var ErrOpenFileError should have comment or be unexported (golint)
    • Line 13: warning: exported function MD5FileByGo should have comment or be unexported (golint)
    • Line 24: warning: exported function MD5FileByGoEx should have comment or be unexported (golint)
    • goutils/httputil/util.go
    • Line 11: warning: exported function ReadJson should have comment or be unexported (golint)
    • Line 17: warning: exported function DownloadFile should have comment or be unexported (golint)
    • goutils/eslite/elasticv3.go
    • Line 17: warning: comment on exported method ElasticClientV3.Open should be of the form "Open ..." (golint)
    • Line 61: warning: comment on exported method ElasticClientV3.Begin should be of the form "Begin ..." (golint)
    • Line 66: warning: comment on exported method ElasticClientV3.Commit should be of the form "Commit ..." (golint)
    • Line 81: warning: comment on exported method ElasticClientV3.Close should be of the form "Close ..." (golint)
    • Line 86: warning: comment on exported method ElasticClientV3.WriteDirect should be of the form "WriteDirect ..." (golint)
    • Line 93: warning: comment on exported method ElasticClientV3.SetPipeline should be of the form "SetPipeline ..." (golint)
    • goutils/shmqueue/queue.go
    • Line 11: warning: exported var ErrBlockR should have comment or be unexported (golint)
    • Line 17: warning: exported type ShmQueue should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • goutils/consul.v2/app.go
    • Line 21: warning: exported type ConsulApp should have comment or be unexported (golint)
    • Line 25: warning: comment on exported function ReadTxt should be of the form "ReadTxt ..." (golint)
    • Line 42: warning: comment on exported function NewConsulAppWithCfg should be of the form "NewConsulAppWithCfg ..." (golint)
    • Line 171: warning: comment on exported function NewConsulApp should be of the form "NewConsulApp ..." (golint)
    • Line 182: warning: comment on exported method ConsulApp.Wait should be of the form "Wait ..." (golint)
    • goutils/jsonconfig/json.go
    • Line 1: warning: package comment should be of the form "Package jsonconfig ..." (golint)
    • Line 19: warning: comment on exported function Load should be of the form "Load ..." (golint)
    • Line 32: warning: comment on exported function LoadMem should be of the form "LoadMem ..." (golint)
    • Line 40: warning: comment on exported function Save should be of the form "Save ..." (golint)
    • goutils/wmi/x.go
    • Line 3: warning: exported type NicConfigListBrief should have comment or be unexported (golint)
    • goutils/eslite/elasticv6.go
    • Line 20: warning: comment on exported method ElasticClientV6.Open should be of the form "Open ..." (golint)
    • Line 64: warning: comment on exported method ElasticClientV6.Begin should be of the form "Begin ..." (golint)
    • Line 69: warning: comment on exported method ElasticClientV6.Commit should be of the form "Commit ..." (golint)
    • Line 85: warning: comment on exported method ElasticClientV6.Close should be of the form "Close ..." (golint)
    • Line 90: warning: comment on exported method ElasticClientV6.WriteDirect should be of the form "WriteDirect ..." (golint)
    • Line 97: warning: comment on exported method ElasticClientV6.SetPipeline should be of the form "SetPipeline ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!