Preparing report...

Report for github.com/sohaha/zlsgo

A+    Excellent!    Found 79 issues across 175 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!


gocyclo89%

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.

    • zlsgo/zjson/get.go
    • Line 1126: warning: cyclomatic complexity 77 of function parseArray() is high (> 15) (gocyclo)
    • Line 608: warning: cyclomatic complexity 56 of function parseArrayPath() is high (> 15) (gocyclo)
    • Line 907: warning: cyclomatic complexity 45 of function parseObject() is high (> 15) (gocyclo)
    • Line 750: warning: cyclomatic complexity 36 of function parseQuery() is high (> 15) (gocyclo)
    • Line 1054: warning: cyclomatic complexity 32 of function queryMatches() is high (> 15) (gocyclo)
    • Line 1586: warning: cyclomatic complexity 32 of function Get() is high (> 15) (gocyclo)
    • Line 277: warning: cyclomatic complexity 31 of function (Res).arrayOrMap() is high (> 15) (gocyclo)
    • Line 1834: warning: cyclomatic complexity 30 of function assign() is high (> 15) (gocyclo)
    • Line 2143: warning: cyclomatic complexity 27 of function validnumber() is high (> 15) (gocyclo)
    • Line 1395: warning: cyclomatic complexity 23 of function splitPossiblePipe() is high (> 15) (gocyclo)
    • Line 837: warning: cyclomatic complexity 23 of function parseObjectPath() is high (> 15) (gocyclo)
    • Line 1699: warning: cyclomatic complexity 21 of function unescape() is high (> 15) (gocyclo)
    • Line 192: warning: cyclomatic complexity 18 of function (Res).ForEach() is high (> 15) (gocyclo)
    • Line 2413: warning: cyclomatic complexity 17 of function switchJson() is high (> 15) (gocyclo)
    • Line 2111: warning: cyclomatic complexity 17 of function validstring() is high (> 15) (gocyclo)
    • Line 1753: warning: cyclomatic complexity 16 of function parseAny() is high (> 15) (gocyclo)
    • zlsgo/zjson/set.go
    • Line 204: warning: cyclomatic complexity 40 of function appendRawPaths() is high (> 15) (gocyclo)
    • Line 36: warning: cyclomatic complexity 17 of function parsePath() is high (> 15) (gocyclo)
    • zlsgo/zjson/json.go
    • Line 154: warning: cyclomatic complexity 22 of function SetBytesOptions() is high (> 15) (gocyclo)
    • Line 76: warning: cyclomatic complexity 19 of function set() is high (> 15) (gocyclo)
    • zlsgo/zvalid/bind.go
    • Line 60: warning: cyclomatic complexity 17 of function Var() is high (> 15) (gocyclo)
    • Line 107: warning: cyclomatic complexity 17 of function setRawValue() is high (> 15) (gocyclo)
    • zlsgo/ztype/to.go
    • Line 116: warning: cyclomatic complexity 26 of function ToInt64() is high (> 15) (gocyclo)
    • Line 203: warning: cyclomatic complexity 26 of function ToUint64() is high (> 15) (gocyclo)
    • Line 25: warning: cyclomatic complexity 20 of function ToString() is high (> 15) (gocyclo)

golint61%

Golint is a linter for Go source code.

    • zlsgo/zpool/pool.go
    • Line 16: warning: exported type WorkPool should have comment or be unexported (golint)
    • Line 31: warning: exported type PanicFunc should have comment or be unexported (golint)
    • Line 35: warning: exported var ErrPoolClosed should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 72: warning: exported method WorkPool.DoWithTimeout should have comment or be unexported (golint)
    • Line 78: warning: comment on exported method WorkPool.PanicFunc should be of the form "PanicFunc ..." (golint)
    • Line 217: warning: exported method WorkPool.PreInit should have comment or be unexported (golint)
    • zlsgo/zcli/util.go
    • Line 48: warning: exported function Error should have comment or be unexported (golint)
    • Line 60: warning: exported function ShowRequired should have comment or be unexported (golint)
    • Line 161: warning: exported function CheckErr should have comment or be unexported (golint)
    • Line 176: warning: exported function IsDoubleClickStartUp should have comment or be unexported (golint)
    • zlsgo/ztype/util.go
    • Line 48: warning: exported function ReflectPtr should have comment or be unexported (golint)
    • Line 55: warning: exported function InArray should have comment or be unexported (golint)
    • zlsgo/zstring/md5.go
    • Line 11: warning: exported function Md5 should have comment or be unexported (golint)
    • Line 17: warning: exported function Md5File should have comment or be unexported (golint)
    • zlsgo/ztime/time.go
    • Line 10: warning: exported function Now should have comment or be unexported (golint)
    • Line 34: warning: exported function Week should have comment or be unexported (golint)
    • Line 38: warning: exported function MonthRange should have comment or be unexported (golint)
    • zlsgo/ztime/cron/cron.go
    • Line 18: warning: exported type JobTable should have comment or be unexported (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • Line 29: warning: exported method JobTable.Add should have comment or be unexported (golint)
    • Line 48: warning: exported method JobTable.ForceRun should have comment or be unexported (golint)
    • Line 70: warning: exported method JobTable.Run should have comment or be unexported (golint)
    • Line 85: warning: exported method JobTable.Stop should have comment or be unexported (golint)
    • zlsgo/zjson/format.go
    • Line 11: warning: exported type Map should have comment or be unexported (golint)
    • Line 12: warning: exported type StFormatOptions should have comment or be unexported (golint)
    • Line 30: warning: exported var DefOptions should have comment or be unexported (golint)
    • Line 37: warning: exported function Format should have comment or be unexported (golint)
    • Line 39: warning: exported function FormatOptions should have comment or be unexported (golint)
    • Line 56: warning: exported function Ugly should have comment or be unexported (golint)
    • Line 298: warning: exported function Discard should have comment or be unexported (golint)
    • zlsgo/zstring/dispose.go
    • Line 24: warning: exported function NewFilter should have comment or be unexported (golint)
    • Line 155: warning: exported function NewReplacer should have comment or be unexported (golint)
    • zlsgo/zhttp/requester.go
    • Line 3: warning: exported function DisableChunke should have comment or be unexported (golint)
    • Line 7: warning: exported function Get should have comment or be unexported (golint)
    • Line 11: warning: exported function Post should have comment or be unexported (golint)
    • Line 15: warning: exported function Put should have comment or be unexported (golint)
    • Line 19: warning: exported function Head should have comment or be unexported (golint)
    • Line 23: warning: exported function Options should have comment or be unexported (golint)
    • Line 27: warning: exported function Delete should have comment or be unexported (golint)
    • Line 31: warning: exported function Patch should have comment or be unexported (golint)
    • Line 35: warning: exported function Connect should have comment or be unexported (golint)
    • Line 39: warning: exported function Trace should have comment or be unexported (golint)
    • Line 43: warning: exported function Do should have comment or be unexported (golint)
    • zlsgo/zshell/shell.go
    • Line 20: warning: exported var Debug should have comment or be unexported (golint)
    • Line 25: warning: exported type ShellBuffer should have comment or be unexported (golint)
    • Line 49: warning: exported function ExecCommandHandle should have comment or be unexported (golint)
    • Line 99: warning: exported function PipeExecCommand should have comment or be unexported (golint)
    • Line 160: warning: exported function ExecCommand should have comment or be unexported (golint)
    • Line 179: warning: exported function Run should have comment or be unexported (golint)
    • Line 183: warning: exported function RunContext should have comment or be unexported (golint)
    • Line 187: warning: exported function OutRun should have comment or be unexported (golint)
    • Line 192: warning: exported function BgRun should have comment or be unexported (golint)
    • zlsgo/zjson/json.go
    • Line 14: warning: exported var ErrNoChange should have comment or be unexported (golint)
    • Line 139: warning: exported function SetOptions should have comment or be unexported (golint)
    • Line 154: warning: exported function SetBytesOptions should have comment or be unexported (golint)
    • Line 228: warning: exported function SetRawBytesOptions should have comment or be unexported (golint)
    • zlsgo/zutil/buffpool.go
    • Line 16: warning: exported var BuffSize should have comment or be unexported (golint)
    • Line 28: warning: exported function GetBuff should have comment or be unexported (golint)
    • Line 47: warning: exported function PutBuff should have comment or be unexported (golint)
    • zlsgo/zstring/aes.go
    • Line 30: warning: comment on exported function PKCS7Padding should be of the form "PKCS7Padding ..." (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 89: warning: exported function AesEnCryptString should have comment or be unexported (golint)
    • Line 98: warning: exported function AesDeCryptString should have comment or be unexported (golint)
    • zlsgo/znet/render.go
    • Line 58: warning: exported type PrevData should have comment or be unexported (golint)
    • Line 164: warning: exported method Context.Byte should have comment or be unexported (golint)
    • Line 172: warning: comment on exported method Context.SetContent should be of the form "SetContent ..." (golint)
    • Line 179: warning: exported method Context.File should have comment or be unexported (golint)
    • Line 190: warning: exported method Context.JSON should have comment or be unexported (golint)
    • Line 219: warning: exported method Context.Templates should have comment or be unexported (golint)
    • Line 252: warning: exported method Context.SetStatus should have comment or be unexported (golint)
    • Line 257: warning: exported method Context.SetContentType should have comment or be unexported (golint)
    • zlsgo/znet/router.go
    • Line 68: warning: exported method Engine.StaticFS should have comment or be unexported (golint)
    • Line 90: warning: exported method Engine.Static should have comment or be unexported (golint)
    • Line 94: warning: exported method Engine.StaticFile should have comment or be unexported (golint)
    • Line 104: warning: exported method Engine.Any should have comment or be unexported (golint)
    • Line 118: warning: exported method Engine.Customize should have comment or be unexported (golint)
    • Line 123: warning: exported method Engine.GET should have comment or be unexported (golint)
    • Line 127: warning: exported method Engine.POST should have comment or be unexported (golint)
    • Line 131: warning: exported method Engine.DELETE should have comment or be unexported (golint)
    • Line 135: warning: exported method Engine.PUT should have comment or be unexported (golint)
    • Line 139: warning: exported method Engine.PATCH should have comment or be unexported (golint)
    • Line 143: warning: exported method Engine.HEAD should have comment or be unexported (golint)
    • Line 147: warning: exported method Engine.OPTIONS should have comment or be unexported (golint)
    • Line 151: warning: exported method Engine.CONNECT should have comment or be unexported (golint)
    • Line 155: warning: exported method Engine.TRACE should have comment or be unexported (golint)
    • Line 159: warning: exported method Engine.GETAndName should have comment or be unexported (golint)
    • Line 165: warning: exported method Engine.POSTAndName should have comment or be unexported (golint)
    • Line 171: warning: exported method Engine.DELETEAndName should have comment or be unexported (golint)
    • Line 177: warning: exported method Engine.PUTAndName should have comment or be unexported (golint)
    • Line 183: warning: exported method Engine.PATCHAndName should have comment or be unexported (golint)
    • Line 189: warning: exported method Engine.HEADAndName should have comment or be unexported (golint)
    • Line 195: warning: exported method Engine.OPTIONSAndName should have comment or be unexported (golint)
    • Line 201: warning: exported method Engine.CONNECTAndName should have comment or be unexported (golint)
    • Line 207: warning: exported method Engine.TRACEAndName should have comment or be unexported (golint)
    • Line 213: warning: exported method Engine.Group should have comment or be unexported (golint)
    • Line 243: warning: exported method Engine.GenerateURL should have comment or be unexported (golint)
    • Line 295: warning: exported method Engine.PreHandler should have comment or be unexported (golint)
    • Line 299: warning: exported method Engine.NotFoundHandler should have comment or be unexported (golint)
    • Line 303: warning: exported method Engine.PanicHandler should have comment or be unexported (golint)
    • Line 337: warning: exported method Engine.GetPanicHandler should have comment or be unexported (golint)
    • Line 392: warning: exported method Engine.FindHandle should have comment or be unexported (golint)
    • Line 443: warning: exported method Engine.Use should have comment or be unexported (golint)
    • Line 449: warning: exported method Engine.HandleNotFound should have comment or be unexported (golint)
    • zlsgo/zcache/table.go
    • Line 331: warning: exported method Table.GetString should have comment or be unexported (golint)
    • Line 340: warning: exported method Table.GetInt should have comment or be unexported (golint)
    • zlsgo/zutil/util.go
    • Line 12: warning: exported function WithLockContext should have comment or be unexported (golint)
    • Line 18: warning: exported function WithRunTimeContext should have comment or be unexported (golint)
    • Line 24: warning: exported function WithRunMemContext should have comment or be unexported (golint)
    • Line 56: warning: comment on exported function Try should be of the form "Try ..." (golint)
    • zlsgo/znet/gzip/gzip.go
    • Line 11: warning: exported function Default should have comment or be unexported (golint)
    • Line 19: warning: exported function New should have comment or be unexported (golint)
    • zlsgo/zlog/file.go
    • Line 69: warning: exported method Logger.Discard should have comment or be unexported (golint)
    • Line 79: warning: exported method Logger.SetSaveFile should have comment or be unexported (golint)
    • Line 87: warning: exported method Logger.CloseFile should have comment or be unexported (golint)
    • zlsgo/zutil/utils_nowin.go
    • Line 5: warning: exported function IsDoubleClickStartUp should have comment or be unexported (golint)
    • Line 9: warning: exported function GetParentProcessName should have comment or be unexported (golint)
    • zlsgo/zstring/encoding.go
    • Line 15: warning: exported function Base64Encode should have comment or be unexported (golint)
    • Line 21: warning: exported function Base64EncodeString should have comment or be unexported (golint)
    • Line 26: warning: exported function Base64Decode should have comment or be unexported (golint)
    • Line 32: warning: exported function Base64DecodeString should have comment or be unexported (golint)
    • Line 41: warning: exported function Serialize should have comment or be unexported (golint)
    • Line 54: warning: exported function UnSerialize should have comment or be unexported (golint)
    • zlsgo/zhttp/http.go
    • Line 33: warning: exported const BitReqHead should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type Header should have comment or be unexported (golint)
    • Line 43: warning: exported type Param should have comment or be unexported (golint)
    • Line 44: warning: exported type QueryParam should have comment or be unexported (golint)
    • Line 45: warning: exported type Host should have comment or be unexported (golint)
    • Line 46: warning: exported type FileUpload should have comment or be unexported (golint)
    • Line 51: warning: exported type DownloadProgress should have comment or be unexported (golint)
    • Line 52: warning: exported type UploadProgress should have comment or be unexported (golint)
    • Line 53: warning: exported type Engine should have comment or be unexported (golint)
    • Line 70: warning: exported type CustomReq should have comment or be unexported (golint)
    • Line 107: warning: exported var ErrNoTransport should have comment or be unexported (golint)
    • Line 151: warning: exported method Engine.Do should have comment or be unexported (golint)
    • Line 622: warning: exported function Client should have comment or be unexported (golint)
    • Line 626: warning: exported function SetClient should have comment or be unexported (golint)
    • Line 630: warning: exported method Engine.SetFlags should have comment or be unexported (golint)
    • Line 634: warning: exported method Engine.GetFlags should have comment or be unexported (golint)
    • Line 638: warning: exported method Engine.SetUserAgent should have comment or be unexported (golint)
    • Line 642: warning: exported function SetFlags should have comment or be unexported (golint)
    • Line 646: warning: exported function Flags should have comment or be unexported (golint)
    • Line 650: warning: exported function EnableInsecureTLS should have comment or be unexported (golint)
    • Line 654: warning: exported function TlsCertificate should have comment or be unexported (golint)
    • Line 658: warning: exported function EnableCookie should have comment or be unexported (golint)
    • Line 662: warning: exported function SetTimeout should have comment or be unexported (golint)
    • Line 666: warning: exported function RemoveProxy should have comment or be unexported (golint)
    • Line 690: warning: exported function SetJSONEscapeHTML should have comment or be unexported (golint)
    • Line 694: warning: exported function SetJSONIndent should have comment or be unexported (golint)
    • Line 698: warning: exported function SetXMLIndent should have comment or be unexported (golint)
    • zlsgo/zarray/array.go
    • Line 16: warning: error var ERR_ILLEGAL_INDEX should have name of the form ErrFoo (golint)
    • Line 97: warning: comment on exported method Array.Add should be of the form "Add ..." (golint)
    • Line 120: warning: comment on exported method Array.Map should be of the form "Map ..." (golint)
    • zlsgo/zcache/cache.go
    • Line 20: warning: exported function Set should have comment or be unexported (golint)
    • Line 24: warning: exported function Delete should have comment or be unexported (golint)
    • Line 28: warning: exported function Clear should have comment or be unexported (golint)
    • Line 32: warning: exported function Get should have comment or be unexported (golint)
    • Line 36: warning: exported function GetInt should have comment or be unexported (golint)
    • Line 40: warning: exported function GetString should have comment or be unexported (golint)
    • Line 44: warning: exported function GetT should have comment or be unexported (golint)
    • Line 55: warning: exported function SetDeleteCallback should have comment or be unexported (golint)
    • zlsgo/zhttp/client.go
    • Line 39: warning: exported method Engine.Client should have comment or be unexported (golint)
    • Line 46: warning: exported method Engine.SetClient should have comment or be unexported (golint)
    • Line 50: warning: exported method Engine.DisableChunke should have comment or be unexported (golint)
    • Line 58: warning: exported method Engine.Get should have comment or be unexported (golint)
    • Line 62: warning: exported method Engine.Post should have comment or be unexported (golint)
    • Line 66: warning: exported method Engine.Put should have comment or be unexported (golint)
    • Line 70: warning: exported method Engine.Patch should have comment or be unexported (golint)
    • Line 74: warning: exported method Engine.Delete should have comment or be unexported (golint)
    • Line 78: warning: exported method Engine.Head should have comment or be unexported (golint)
    • Line 82: warning: exported method Engine.Options should have comment or be unexported (golint)
    • Line 86: warning: exported method Engine.Trace should have comment or be unexported (golint)
    • Line 90: warning: exported method Engine.Connect should have comment or be unexported (golint)
    • Line 94: warning: exported method Engine.EnableInsecureTLS should have comment or be unexported (golint)
    • Line 105: warning: exported type Certificate should have comment or be unexported (golint)
    • Line 110: warning: exported method Engine.TlsCertificate should have comment or be unexported (golint)
    • Line 131: warning: exported method Engine.EnableCookie should have comment or be unexported (golint)
    • Line 140: warning: exported method Engine.CheckRedirect should have comment or be unexported (golint)
    • Line 150: warning: exported method Engine.SetTimeout should have comment or be unexported (golint)
    • Line 154: warning: exported method Engine.SetTransport should have comment or be unexported (golint)
    • Line 163: warning: exported method Engine.SetProxyUrl should have comment or be unexported (golint)
    • Line 177: warning: exported method Engine.SetProxy should have comment or be unexported (golint)
    • Line 183: warning: exported method Engine.RemoveProxy should have comment or be unexported (golint)
    • Line 199: warning: exported method Engine.SetJSONEscapeHTML should have comment or be unexported (golint)
    • Line 204: warning: exported method Engine.SetJSONIndent should have comment or be unexported (golint)
    • Line 210: warning: exported method Engine.SetXMLIndent should have comment or be unexported (golint)
    • Line 216: warning: exported method Engine.SetSsl should have comment or be unexported (golint)
    • zlsgo/zhttp/response.go
    • Line 18: warning: exported type Res should have comment or be unexported (golint)
    • Line 32: warning: exported method Res.Request should have comment or be unexported (golint)
    • Line 36: warning: exported method Res.Response should have comment or be unexported (golint)
    • Line 41: warning: exported method Res.StatusCode should have comment or be unexported (golint)
    • Line 49: warning: exported method Res.GetCookie should have comment or be unexported (golint)
    • Line 61: warning: exported method Res.Bytes should have comment or be unexported (golint)
    • Line 66: warning: exported method Res.ToBytes should have comment or be unexported (golint)
    • Line 84: warning: exported method Res.Body should have comment or be unexported (golint)
    • Line 102: warning: exported method Res.HTML should have comment or be unexported (golint)
    • Line 116: warning: exported method Res.JSONs should have comment or be unexported (golint)
    • Line 121: warning: exported method Res.JSON should have comment or be unexported (golint)
    • Line 126: warning: exported method Res.ToString should have comment or be unexported (golint)
    • Line 131: warning: exported method Res.ToJSON should have comment or be unexported (golint)
    • Line 139: warning: exported method Res.ToXML should have comment or be unexported (golint)
    • Line 147: warning: exported method Res.ToFile should have comment or be unexported (golint)
    • zlsgo/znet/tree.go
    • Line 32: warning: exported function NewNode should have comment or be unexported (golint)
    • Line 40: warning: exported function NewTree should have comment or be unexported (golint)
    • Line 47: warning: exported method Tree.Add should have comment or be unexported (golint)
    • Line 77: warning: exported method Tree.Find should have comment or be unexported (golint)
    • zlsgo/zstring/match.go
    • Line 5: warning: exported function Match should have comment or be unexported (golint)
    • Line 105: warning: exported function IsPattern should have comment or be unexported (golint)
    • zlsgo/zcache/item.go
    • Line 48: warning: comment on exported method Item.IntervalLifeSpan should be of the form "IntervalLifeSpan ..." (golint)
    • zlsgo/znet/cors/cors.go
    • Line 24: warning: exported type Handler should have comment or be unexported (golint)
    • Line 27: warning: exported function Default should have comment or be unexported (golint)
    • Line 31: warning: exported function NewAllowHeaders should have comment or be unexported (golint)
    • Line 42: warning: exported function New should have comment or be unexported (golint)
    • zlsgo/ztime/cron/cronexpr.go
    • Line 15: warning: exported type Expression should have comment or be unexported (golint)
    • Line 487: warning: exported function ParseNextTime should have comment or be unexported (golint)
    • Line 496: warning: exported function Parse should have comment or be unexported (golint)
    • zlsgo/zjson/get.go
    • Line 19: warning: exported type Type should have comment or be unexported (golint)
    • Line 20: warning: exported type Res should have comment or be unexported (golint)
    • Line 30: warning: exported const Null should have comment (or a comment on this block) or be unexported (golint)
    • Line 86: warning: exported method Res.Bool should have comment or be unexported (golint)
    • Line 100: warning: exported method Res.Int should have comment or be unexported (golint)
    • Line 123: warning: exported method Res.Uint should have comment or be unexported (golint)
    • Line 145: warning: exported method Res.Float should have comment or be unexported (golint)
    • Line 159: warning: exported method Res.Unmarshal should have comment or be unexported (golint)
    • Line 163: warning: exported method Res.Time should have comment or be unexported (golint)
    • Line 173: warning: exported method Res.Array should have comment or be unexported (golint)
    • Line 184: warning: exported method Res.IsObject should have comment or be unexported (golint)
    • Line 188: warning: exported method Res.IsArray should have comment or be unexported (golint)
    • Line 192: warning: exported method Res.ForEach should have comment or be unexported (golint)
    • Line 257: warning: exported method Res.Map should have comment or be unexported (golint)
    • Line 265: warning: exported method Res.Get should have comment or be unexported (golint)
    • Line 385: warning: exported function Parse should have comment or be unexported (golint)
    • Line 422: warning: exported function ParseBytes should have comment or be unexported (golint)
    • Line 502: warning: exported method Res.Exists should have comment or be unexported (golint)
    • Line 506: warning: exported method Res.Value should have comment or be unexported (golint)
    • Line 1457: warning: exported function ForEachLine should have comment or be unexported (golint)
    • Line 1578: warning: exported function ModifiersState should have comment or be unexported (golint)
    • Line 1582: warning: exported function SetModifiersState should have comment or be unexported (golint)
    • Line 1586: warning: exported function Get should have comment or be unexported (golint)
    • Line 1690: warning: exported function GetBytes should have comment or be unexported (golint)
    • Line 1813: warning: exported function GetMultiple should have comment or be unexported (golint)
    • Line 1821: warning: exported function GetMultipleBytes should have comment or be unexported (golint)
    • Line 1936: warning: exported function UnmarshalValidationEnabled should have comment or be unexported (golint)
    • Line 1944: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 2231: warning: exported function Valid should have comment or be unexported (golint)
    • Line 2236: warning: exported function ValidBytes should have comment or be unexported (golint)
    • Line 2338: warning: exported function AddModifier should have comment or be unexported (golint)
    • Line 2342: warning: exported function ModifierExists should have comment or be unexported (golint)
    • Line 2451: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 2460: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • zlsgo/zutil/reflect.go
    • Line 11: warning: exported function SetValue should have comment or be unexported (golint)
    • Line 95: warning: exported function ReflectStructField should have comment or be unexported (golint)
    • Line 126: warning: exported function ReflectForNumField should have comment or be unexported (golint)
    • Line 161: warning: exported function Nonzero should have comment or be unexported (golint)
    • Line 197: warning: exported function GetField should have comment or be unexported (golint)
    • Line 205: warning: exported function CanInline should have comment or be unexported (golint)
    • Line 228: warning: exported function CanExpand should have comment or be unexported (golint)
    • Line 238: warning: exported function LabelType should have comment or be unexported (golint)
    • zlsgo/zhttp/debug.go
    • Line 24: warning: exported var Debug should have comment or be unexported (golint)
    • Line 193: warning: exported method Res.Cost should have comment or be unexported (golint)
    • Line 197: warning: exported method Res.Dump should have comment or be unexported (golint)
    • zlsgo/zarray/map_def.go
    • Line 18: warning: comment on exported method DefData.Int should be of the form "Int ..." (golint)
    • Line 38: warning: comment on exported method DefData.Float64 should be of the form "Float64 ..." (golint)
    • Line 48: warning: exported method DefData.FuncSingle should have comment or be unexported (golint)
    • zlsgo/ztime/new.go
    • Line 18: warning: exported var TimeTpl should have comment or be unexported (golint)
    • Line 54: warning: exported type TimeEngine should have comment or be unexported (golint)
    • Line 188: warning: exported method TimeEngine.Week should have comment or be unexported (golint)
    • zlsgo/zhttp/util.go
    • Line 62: warning: exported function File should have comment or be unexported (golint)
    • Line 93: warning: exported var UserAgentLists should have comment or be unexported (golint)
    • Line 102: warning: exported function RandomUserAgent should have comment or be unexported (golint)
    • zlsgo/zlog/zlogger.go
    • Line 48: warning: exported var Levels should have comment or be unexported (golint)
    • Line 60: warning: exported var LevelColous should have comment or be unexported (golint)
    • Line 356: warning: comment on exported method Logger.Panic should be of the form "Panic ..." (golint)
    • Line 396: warning: exported function TrackCurrent should have comment or be unexported (golint)
    • Line 451: warning: exported method Logger.GetPrefix should have comment or be unexported (golint)
    • zlsgo/znet/web.go
    • Line 62: warning: exported type TlsCfg should have comment or be unexported (golint)
    • Line 122: warning: exported var Cache should have comment or be unexported (golint)
    • Line 123: warning: comment on exported var ShutdownDone should be of the form "ShutdownDone ..." (golint)
    • Line 125: warning: comment on exported var CloseHotRestart should be of the form "CloseHotRestart ..." (golint)
    • Line 296: warning: exported method Engine.StartUp should have comment or be unexported (golint)
    • zlsgo/ztype/struct.go
    • Line 7: warning: exported type StructEngin should have comment or be unexported (golint)
    • Line 15: warning: exported function Struct should have comment or be unexported (golint)
    • Line 22: warning: exported method StructEngin.GetStructFields should have comment or be unexported (golint)
    • Line 36: warning: exported method StructEngin.ToMap should have comment or be unexported (golint)
    • Line 77: warning: exported method StructEngin.AppendFields should have comment or be unexported (golint)
    • Line 81: warning: exported method StructEngin.SetFields should have comment or be unexported (golint)
    • Line 84: warning: exported method StructEngin.SetExtraCols should have comment or be unexported (golint)
    • Line 89: warning: exported method StructEngin.GetFields should have comment or be unexported (golint)
    • Line 93: warning: exported method StructEngin.AppendResult should have comment or be unexported (golint)
    • Line 97: warning: exported method StructEngin.SetResult should have comment or be unexported (golint)
    • Line 101: warning: exported method StructEngin.GetResult should have comment or be unexported (golint)
    • Line 105: warning: exported method StructEngin.SetTagName should have comment or be unexported (golint)
    • Line 110: warning: exported method StructEngin.GetTagName should have comment or be unexported (golint)
    • Line 114: warning: exported method StructEngin.SetTagIgnoreName should have comment or be unexported (golint)
    • Line 119: warning: exported method StructEngin.GetTagIgnoreName should have comment or be unexported (golint)
    • zlsgo/zutil/daemon/daemon.go
    • Line 34: warning: exported type Ife should have comment or be unexported (golint)
    • Line 38: warning: exported type SystemIfe should have comment or be unexported (golint)
    • Line 71: warning: exported var ErrNameFieldRequired should have comment or be unexported (golint)
    • zlsgo/zstring/rand.go
    • Line 53: warning: comment on exported function Rand should be of the form "Rand ..." (golint)
    • Line 84: warning: exported function UUID should have comment or be unexported (golint)
    • zlsgo/zhttp/query_render.go
    • Line 9: warning: exported method QueryHTML.Exist should have comment or be unexported (golint)
    • Line 13: warning: exported method QueryHTML.Attr should have comment or be unexported (golint)
    • Line 17: warning: exported method QueryHTML.Attrs should have comment or be unexported (golint)
    • Line 25: warning: exported method QueryHTML.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method QueryHTML.Text should have comment or be unexported (golint)
    • Line 37: warning: exported method QueryHTML.FullText should have comment or be unexported (golint)
    • Line 45: warning: exported method QueryHTML.HTML should have comment or be unexported (golint)
    • zlsgo/znet/value.go
    • Line 20: warning: exported method Context.Bind should have comment or be unexported (golint)
    • Line 27: warning: exported method Context.BindValid should have comment or be unexported (golint)
    • zlsgo/zfile/file.go
    • Line 15: warning: exported var ProjectPath should have comment or be unexported (golint)
    • Line 96: warning: exported function TmpPath should have comment or be unexported (golint)
    • zlsgo/zutil/daemon/daemon_linux.go
    • Line 188: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 196: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 204: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • zlsgo/zcli/var.go
    • Line 71: warning: exported var Logo should have comment or be unexported (golint)
    • Line 107: warning: exported function SetLangText should have comment or be unexported (golint)
    • Line 116: warning: exported function GetLangText should have comment or be unexported (golint)
    • Line 135: warning: exported function SetVar should have comment or be unexported (golint)
    • zlsgo/zjson/set.go
    • Line 12: warning: exported type Options should have comment or be unexported (golint)
    • Line 26: warning: exported function Stringify should have comment or be unexported (golint)
    • Line 368: warning: exported function Marshal should have comment or be unexported (golint)
    • Line 372: warning: exported function Set should have comment or be unexported (golint)
    • Line 376: warning: exported function SetBytes should have comment or be unexported (golint)
    • Line 380: warning: exported function SetRaw should have comment or be unexported (golint)
    • Line 384: warning: exported function SetRawOptions should have comment or be unexported (golint)
    • Line 396: warning: exported function SetRawBytes should have comment or be unexported (golint)
    • Line 400: warning: exported function Delete should have comment or be unexported (golint)
    • Line 404: warning: exported function DeleteBytes should have comment or be unexported (golint)
    • zlsgo/zhttp/query.go
    • Line 9: warning: exported type QueryHTML should have comment or be unexported (golint)
    • Line 14: warning: exported function HTMLParse should have comment or be unexported (golint)
    • Line 40: warning: exported method QueryHTML.SelectChild should have comment or be unexported (golint)
    • Line 60: warning: exported method QueryHTML.Child should have comment or be unexported (golint)
    • Line 68: warning: exported method QueryHTML.NthChild should have comment or be unexported (golint)
    • Line 81: warning: exported method QueryHTML.Select should have comment or be unexported (golint)
    • Line 89: warning: exported method QueryHTML.SelectAll should have comment or be unexported (golint)
    • Line 102: warning: exported method QueryHTML.SelectBrother should have comment or be unexported (golint)
    • Line 120: warning: exported method QueryHTML.SelectParent should have comment or be unexported (golint)
    • Line 137: warning: exported method QueryHTML.Find should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!