Preparing report...

Report for github.com/nothollyhigh/kiss

A    Great!    Found 59 issues across 91 files

Tweet

gofmt94%

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!


golint36%

Golint is a linter for Go source code.

    • kiss/redis/rediscluster.go
    • Line 14: warning: exported type ClusterConfig should have comment or be unexported (golint)
    • Line 38: warning: exported type RedisCluster should have comment or be unexported (golint)
    • Line 45: warning: exported method RedisCluster.Client should have comment or be unexported (golint)
    • Line 55: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 58: warning: comment on exported method RedisCluster.LoadScript should be of the form "LoadScript ..." (golint)
    • Line 98: warning: exported method RedisCluster.EvalSha should have comment or be unexported (golint)
    • Line 117: warning: exported method RedisCluster.Eval should have comment or be unexported (golint)
    • Line 123: warning: exported method RedisCluster.Close should have comment or be unexported (golint)
    • Line 127: warning: exported function NewCluster should have comment or be unexported (golint)
    • kiss/util/file.go
    • Line 8: warning: exported function CopyFile should have comment or be unexported (golint)
    • Line 22: warning: exported function PathExist should have comment or be unexported (golint)
    • kiss/util/qps.go
    • Line 9: warning: exported type Qps should have comment or be unexported (golint)
    • Line 19: warning: exported method Qps.Add should have comment or be unexported (golint)
    • Line 24: warning: exported method Qps.Run should have comment or be unexported (golint)
    • Line 50: warning: exported method Qps.Stop should have comment or be unexported (golint)
    • Line 54: warning: exported function NewQps should have comment or be unexported (golint)
    • kiss/util/timeid.go
    • Line 11: warning: exported function TimeID should have comment or be unexported (golint)
    • Line 33: warning: exported function TestTimeID should have comment or be unexported (golint)
    • kiss/net/tcpengine.go
    • Line 13: warning: comment on exported type TcpEngin should be of the form "TcpEngin ..." (with optional leading article) (golint)
    • Line 79: warning: comment on exported method TcpEngin.DefaultNewConnHandler should be of the form "DefaultNewConnHandler ..." (golint)
    • Line 120: warning: comment on exported method TcpEngin.OnNewConn should be of the form "OnNewConn ..." (golint)
    • Line 131: warning: comment on exported method TcpEngin.HandleNewConn should be of the form "HandleNewConn ..." (golint)
    • Line 136: warning: comment on exported method TcpEngin.DefaultCreateClientHandler should be of the form "DefaultCreateClientHandler ..." (golint)
    • Line 141: warning: comment on exported method TcpEngin.CreateClient should be of the form "CreateClient ..." (golint)
    • Line 149: warning: comment on exported method TcpEngin.HandleCreateClient should be of the form "HandleCreateClient ..." (golint)
    • Line 154: warning: comment on exported method TcpEngin.OnNewClient should be of the form "OnNewClient ..." (golint)
    • Line 161: warning: comment on exported method TcpEngin.HandleNewClient should be of the form "HandleNewClient ..." (golint)
    • Line 166: warning: comment on exported method TcpEngin.NewCipher should be of the form "NewCipher ..." (golint)
    • Line 174: warning: comment on exported method TcpEngin.HandleNewCipher should be of the form "HandleNewCipher ..." (golint)
    • Line 179: warning: comment on exported method TcpEngin.OnDisconnected should be of the form "OnDisconnected ..." (golint)
    • Line 186: warning: comment on exported method TcpEngin.HandleDisconnected should be of the form "HandleDisconnected ..." (golint)
    • Line 191: warning: comment on exported method TcpEngin.DefaultRecvMsg should be of the form "DefaultRecvMsg ..." (golint)
    • Line 248: warning: comment on exported method TcpEngin.RecvMsg should be of the form "RecvMsg ..." (golint)
    • Line 257: warning: comment on exported method TcpEngin.HandleRecv should be of the form "HandleRecv ..." (golint)
    • Line 262: warning: comment on exported method TcpEngin.OnSendQueueFull should be of the form "OnSendQueueFull ..." (golint)
    • Line 269: warning: comment on exported method TcpEngin.HandleSendQueueFull should be of the form "HandleSendQueueFull ..." (golint)
    • Line 274: warning: comment on exported method TcpEngin.DefaultSend should be of the form "DefaultSend ..." (golint)
    • Line 297: warning: comment on exported method TcpEngin.Send should be of the form "Send ..." (golint)
    • Line 308: warning: comment on exported method TcpEngin.HandleSend should be of the form "HandleSend ..." (golint)
    • Line 313: warning: exported method TcpEngin.DefaultOnMessage should have comment or be unexported (golint)
    • Line 333: warning: exported method TcpEngin.OnMessage should have comment or be unexported (golint)
    • Line 355: warning: comment on exported method TcpEngin.HandleMessage should be of the form "HandleMessage ..." (golint)
    • Line 360: warning: comment on exported method TcpEngin.Handle should be of the form "Handle ..." (golint)
    • Line 384: warning: comment on exported method TcpEngin.HandleRpcCmd should be of the form "HandleRpcCmd ..." (golint)
    • Line 449: warning: comment on exported method TcpEngin.HandleRpcMethod should be of the form "HandleRpcMethod ..." (golint)
    • Line 476: warning: comment on exported method TcpEngin.SockNoDelay should be of the form "SockNoDelay ..." (golint)
    • Line 481: warning: comment on exported method TcpEngin.SetSockNoDelay should be of the form "SetSockNoDelay ..." (golint)
    • Line 486: warning: comment on exported method TcpEngin.SockKeepAlive should be of the form "SockKeepAlive ..." (golint)
    • Line 491: warning: comment on exported method TcpEngin.SetSockKeepAlive should be of the form "SetSockKeepAlive ..." (golint)
    • Line 496: warning: comment on exported method TcpEngin.SockBufioReaderEnabled should be of the form "SockBufioReaderEnabled ..." (golint)
    • Line 501: warning: comment on exported method TcpEngin.SetSockBufioReaderEnabled should be of the form "SetSockBufioReaderEnabled ..." (golint)
    • Line 506: warning: comment on exported method TcpEngin.SockKeepaliveTime should be of the form "SockKeepaliveTime ..." (golint)
    • Line 511: warning: comment on exported method TcpEngin.SetSockKeepaliveTime should be of the form "SetSockKeepaliveTime ..." (golint)
    • Line 516: warning: comment on exported method TcpEngin.SetMultiSetRealIpEnabled should be of the form "SetMultiSetRealIpEnabled ..." (golint)
    • Line 521: warning: comment on exported method TcpEngin.MultiSetRealIpEnabled should be of the form "MultiSetRealIpEnabled ..." (golint)
    • Line 526: warning: comment on exported method TcpEngin.SockRecvBufLen should be of the form "SockRecvBufLen ..." (golint)
    • Line 531: warning: comment on exported method TcpEngin.SetSockRecvBufLen should be of the form "SetSockRecvBufLen ..." (golint)
    • Line 536: warning: comment on exported method TcpEngin.SendQueueSize should be of the form "SendQueueSize ..." (golint)
    • Line 541: warning: comment on exported method TcpEngin.SetSendQueueSize should be of the form "SetSendQueueSize ..." (golint)
    • Line 546: warning: comment on exported method TcpEngin.SockSendBufLen should be of the form "SockSendBufLen ..." (golint)
    • Line 551: warning: comment on exported method TcpEngin.SetSockSendBufLen should be of the form "SetSockSendBufLen ..." (golint)
    • Line 556: warning: comment on exported method TcpEngin.SockRecvBlockTime should be of the form "SockRecvBlockTime ..." (golint)
    • Line 561: warning: comment on exported method TcpEngin.SetSockRecvBlockTime should be of the form "SetSockRecvBlockTime ..." (golint)
    • Line 566: warning: comment on exported method TcpEngin.SockSendBlockTime should be of the form "SockSendBlockTime ..." (golint)
    • Line 571: warning: comment on exported method TcpEngin.SetSockSendBlockTime should be of the form "SetSockSendBlockTime ..." (golint)
    • Line 576: warning: comment on exported method TcpEngin.SockMaxPackLen should be of the form "SockMaxPackLen ..." (golint)
    • Line 581: warning: comment on exported method TcpEngin.SetSockMaxPackLen should be of the form "SetSockMaxPackLen ..." (golint)
    • Line 586: warning: comment on exported method TcpEngin.SockLingerSeconds should be of the form "SockLingerSeconds ..." (golint)
    • Line 591: warning: comment on exported method TcpEngin.SetSockLingerSeconds should be of the form "SetSockLingerSeconds ..." (golint)
    • Line 596: warning: comment on exported method TcpEngin.BroadCast should be of the form "BroadCast ..." (golint)
    • Line 600: warning: should omit 2nd value from range; this loop is equivalent to `for c := range ...` (golint)
    • Line 605: warning: comment on exported function NewTcpEngine should be of the form "NewTcpEngine ..." (golint)
    • kiss/util/analyzer.go
    • Line 15: warning: exported function SetAnalyzerDebug should have comment or be unexported (golint)
    • Line 19: warning: exported type Analyzer should have comment or be unexported (golint)
    • Line 50: warning: exported method Analyzer.Begin should have comment or be unexported (golint)
    • Line 57: warning: exported method Analyzer.Done should have comment or be unexported (golint)
    • Line 87: warning: exported method Analyzer.Report should have comment or be unexported (golint)
    • Line 116: warning: exported method Analyzer.Fork should have comment or be unexported (golint)
    • Line 163: warning: exported method Analyzer.Info should have comment or be unexported (golint)
    • Line 176: warning: exported function NewAnalyzer should have comment or be unexported (golint)
    • kiss/util/error.go
    • Line 10: warning: exported var MAX_ERROR_STACK should have comment or be unexported (golint)
    • Line 14: warning: exported type Error should have comment or be unexported (golint)
    • Line 21: warning: exported method Error.ToError should have comment or be unexported (golint)
    • Line 25: warning: exported method Error.Root should have comment or be unexported (golint)
    • Line 59: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 72: warning: exported function ErrorWrap should have comment or be unexported (golint)
    • Line 98: warning: exported function SetMaxErrorStack should have comment or be unexported (golint)
    • Line 102: warning: exported function SetErrorLinePrefix should have comment or be unexported (golint)
    • kiss/net/listener.go
    • Line 8: warning: comment on exported type SocketOpt should be of the form "SocketOpt ..." (with optional leading article) (golint)
    • Line 21: warning: comment on exported type Listener should be of the form "Listener ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported method Listener.Accept should be of the form "Accept ..." (golint)
    • Line 55: warning: comment on exported function NewListener should be of the form "NewListener ..." (golint)
    • kiss/net/message.go
    • Line 20: warning: comment on exported const DEFAULT_MESSAGE_HEAD_LEN should be of the form "DEFAULT_MESSAGE_HEAD_LEN ..." (golint)
    • Line 23: warning: comment on exported const DEFAULT_BODY_LEN_IDX_BEGIN should be of the form "DEFAULT_BODY_LEN_IDX_BEGIN ..." (golint)
    • Line 25: warning: comment on exported const DEFAULT_BODY_LEN_IDX_END should be of the form "DEFAULT_BODY_LEN_IDX_END ..." (golint)
    • Line 28: warning: comment on exported const DEFAULT_CMD_IDX_BEGIN should be of the form "DEFAULT_CMD_IDX_BEGIN ..." (golint)
    • Line 30: warning: comment on exported const DEFAULT_CMD_IDX_END should be of the form "DEFAULT_CMD_IDX_END ..." (golint)
    • Line 33: warning: comment on exported const DEFAULT_EXT_IDX_BEGIN should be of the form "DEFAULT_EXT_IDX_BEGIN ..." (golint)
    • Line 35: warning: comment on exported const DEFAULT_EXT_IDX_END should be of the form "DEFAULT_EXT_IDX_END ..." (golint)
    • Line 38: warning: comment on exported const CmdFlagMaskGzip should be of the form "CmdFlagMaskGzip ..." (golint)
    • Line 41: warning: comment on exported const CmdPing should be of the form "CmdPing ..." (golint)
    • Line 43: warning: comment on exported const CmdPing2 should be of the form "CmdPing2 ..." (golint)
    • Line 45: warning: comment on exported const CmdSetReaIp should be of the form "CmdSetReaIp ..." (golint)
    • Line 47: warning: comment on exported const CmdRpcMethod should be of the form "CmdRpcMethod ..." (golint)
    • Line 49: warning: comment on exported const CmdRpcError should be of the form "CmdRpcError ..." (golint)
    • Line 52: warning: comment on exported const CmdUserMax should be of the form "CmdUserMax ..." (golint)
    • Line 56: warning: comment on exported type IMessage should be of the form "IMessage ..." (with optional leading article) (golint)
    • Line 87: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 93: warning: comment on exported method Message.BodyLen should be of the form "BodyLen ..." (golint)
    • Line 98: warning: comment on exported method Message.Cmd should be of the form "Cmd ..." (golint)
    • Line 103: warning: comment on exported method Message.SetCmd should be of the form "SetCmd ..." (golint)
    • Line 108: warning: comment on exported method Message.Ext should be of the form "Ext ..." (golint)
    • Line 113: warning: comment on exported method Message.SetExt should be of the form "SetExt ..." (golint)
    • Line 118: warning: comment on exported method Message.Data should be of the form "Data ..." (golint)
    • Line 123: warning: comment on exported method Message.SetData should be of the form "SetData ..." (golint)
    • Line 128: warning: comment on exported method Message.Body should be of the form "Body ..." (golint)
    • Line 133: warning: comment on exported method Message.SetBody should be of the form "SetBody ..." (golint)
    • Line 145: warning: comment on exported method Message.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 155: warning: comment on exported method Message.Decrypt should be of the form "Decrypt ..." (golint)
    • Line 166: warning: comment on exported function NewMessage should be of the form "NewMessage ..." (golint)
    • Line 179: warning: comment on exported function RawMessage should be of the form "RawMessage ..." (golint)
    • Line 186: warning: comment on exported function NewRpcMessage should be of the form "NewRpcMessage ..." (golint)
    • Line 200: warning: comment on exported function RealIpMsg should be of the form "RealIpMsg ..." (golint)
    • Line 219: warning: comment on exported function PingMsg should be of the form "PingMsg ..." (golint)
    • kiss/net/rpccontext.go
    • Line 12: warning: exported var ErrInvalidBody should have comment or be unexported (golint)
    • Line 15: warning: comment on exported type RpcContext should be of the form "RpcContext ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported method RpcContext.Client should be of the form "Client ..." (golint)
    • Line 27: warning: comment on exported method RpcContext.Cmd should be of the form "Cmd ..." (golint)
    • Line 32: warning: comment on exported method RpcContext.Body should be of the form "Body ..." (golint)
    • Line 37: warning: comment on exported method RpcContext.Method should be of the form "Method ..." (golint)
    • Line 42: warning: comment on exported method RpcContext.WriteData should be of the form "WriteData ..." (golint)
    • Line 50: warning: comment on exported method RpcContext.WriteMsg should be of the form "WriteMsg ..." (golint)
    • Line 59: warning: comment on exported method RpcContext.Bind should be of the form "Bind ..." (golint)
    • Line 75: warning: comment on exported method RpcContext.BindJson should be of the form "BindJson ..." (golint)
    • Line 80: warning: comment on exported method RpcContext.WriteJson should be of the form "WriteJson ..." (golint)
    • Line 91: warning: comment on exported method RpcContext.BindGob should be of the form "BindGob ..." (golint)
    • Line 96: warning: comment on exported method RpcContext.WriteGob should be of the form "WriteGob ..." (golint)
    • Line 108: warning: comment on exported method RpcContext.BindMsgpack should be of the form "BindMsgpack ..." (golint)
    • Line 113: warning: comment on exported method RpcContext.WriteMsgpack should be of the form "WriteMsgpack ..." (golint)
    • Line 124: warning: comment on exported method RpcContext.BindProtobuf should be of the form "BindProtobuf ..." (golint)
    • Line 129: warning: comment on exported method RpcContext.WriteProtobuf should be of the form "WriteProtobuf ..." (golint)
    • kiss/mysql/mysql.go
    • Line 6: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 15: warning: exported type Config should have comment or be unexported (golint)
    • Line 25: warning: exported type Mysql should have comment or be unexported (golint)
    • Line 31: warning: exported method Mysql.OrmDB should have comment or be unexported (golint)
    • Line 35: warning: exported method Mysql.DB should have comment or be unexported (golint)
    • Line 39: warning: exported method Mysql.Close should have comment or be unexported (golint)
    • Line 43: warning: exported function New should have comment or be unexported (golint)
    • Line 92: warning: exported type MgrConfig should have comment or be unexported (golint)
    • Line 97: warning: exported type MysqlMgr should have comment or be unexported (golint)
    • Line 101: warning: exported method MysqlMgr.Get should have comment or be unexported (golint)
    • Line 117: warning: exported method MysqlMgr.ForEach should have comment or be unexported (golint)
    • Line 125: warning: exported function NewMgr should have comment or be unexported (golint)
    • Line 160: warning: exported function ClearTransaction should have comment or be unexported (golint)
    • kiss/crypto/sha.go
    • Line 10: warning: exported function HmacSha1 should have comment or be unexported (golint)
    • Line 16: warning: exported function Sha1 should have comment or be unexported (golint)
    • Line 22: warning: exported function HmacSha256 should have comment or be unexported (golint)
    • Line 28: warning: exported function Sha256 should have comment or be unexported (golint)
    • kiss/util/compress.go
    • Line 10: warning: exported function ZlibCompress should have comment or be unexported (golint)
    • Line 18: warning: exported function ZlibUnCompress should have comment or be unexported (golint)
    • Line 32: warning: exported function GZipCompress should have comment or be unexported (golint)
    • Line 40: warning: exported function GZipUnCompress should have comment or be unexported (golint)
    • kiss/mongo/mongo.go
    • Line 22: warning: exported type Config should have comment or be unexported (golint)
    • Line 39: warning: exported type MongoSessionWrap should have comment or be unexported (golint)
    • Line 56: warning: exported method MongoSessionWrap.Clone should have comment or be unexported (golint)
    • Line 64: warning: exported method MongoSessionWrap.Close should have comment or be unexported (golint)
    • Line 76: warning: exported type Mongo should have comment or be unexported (golint)
    • Line 84: warning: exported method Mongo.Session should have comment or be unexported (golint)
    • Line 88: warning: exported method Mongo.SessionWithTimeout should have comment or be unexported (golint)
    • Line 99: warning: exported method Mongo.Insert should have comment or be unexported (golint)
    • Line 106: warning: exported method Mongo.EnsureIndex should have comment or be unexported (golint)
    • Line 115: warning: exported method Mongo.Keepalive should have comment or be unexported (golint)
    • Line 135: warning: exported method Mongo.Stop should have comment or be unexported (golint)
    • Line 139: warning: exported function New should have comment or be unexported (golint)
    • Line 203: warning: exported type MgrConfig should have comment or be unexported (golint)
    • Line 208: warning: exported type MongoMgr should have comment or be unexported (golint)
    • Line 212: warning: exported method MongoMgr.Get should have comment or be unexported (golint)
    • Line 228: warning: exported method MongoMgr.ForEach should have comment or be unexported (golint)
    • Line 236: warning: exported function NewMgr should have comment or be unexported (golint)
    • kiss/graceful/modulemgr.go
    • Line 15: warning: exported type M should have comment or be unexported (golint)
    • Line 38: warning: exported type ModuleMgr should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method ModuleMgr.Register should be of the form "Register ..." (golint)
    • Line 52: warning: comment on exported method ModuleMgr.Start should be of the form "Start ..." (golint)
    • Line 65: warning: exported method ModuleMgr.Stop should have comment or be unexported (golint)
    • Line 84: warning: exported function Register should have comment or be unexported (golint)
    • Line 88: warning: exported function Start should have comment or be unexported (golint)
    • Line 92: warning: exported function Stop should have comment or be unexported (golint)
    • kiss/util/panic.go
    • Line 16: warning: exported function OnPanic should have comment or be unexported (golint)
    • Line 25: warning: exported function HandlePanic should have comment or be unexported (golint)
    • Line 48: warning: exported function Safe should have comment or be unexported (golint)
    • kiss/util/regexp.go
    • Line 7: warning: exported function IsChineseName should have comment or be unexported (golint)
    • Line 12: warning: exported function IsEmail should have comment or be unexported (golint)
    • Line 17: warning: exported function IsMobilePhone should have comment or be unexported (golint)
    • Line 22: warning: exported function IsOnlyChinese should have comment or be unexported (golint)
    • kiss/util/trim.go
    • Line 9: warning: exported function TrimComment should have comment or be unexported (golint)
    • Line 33: warning: exported function TrimJsonComma should have comment or be unexported (golint)
    • Line 59: warning: exported function TrimJson should have comment or be unexported (golint)
    • kiss/net/tcpserver.go
    • Line 14: warning: comment on exported type TcpServer should be of the form "TcpServer ..." (with optional leading article) (golint)
    • Line 56: warning: should omit 2nd value from range; this loop is equivalent to `for client := range ...` (golint)
    • Line 121: warning: comment on exported method TcpServer.Start should be of the form "Start ..." (golint)
    • Line 151: warning: comment on exported method TcpServer.Stop should be of the form "Stop ..." (golint)
    • Line 187: warning: comment on exported method TcpServer.StopWithTimeout should be of the form "StopWithTimeout ..." (golint)
    • Line 194: warning: comment on exported method TcpServer.Serve should be of the form "Serve ..." (golint)
    • Line 213: warning: comment on exported method TcpServer.CurrLoad should be of the form "CurrLoad ..." (golint)
    • Line 218: warning: comment on exported method TcpServer.MaxLoad should be of the form "MaxLoad ..." (golint)
    • Line 223: warning: comment on exported method TcpServer.SetMaxConcurrent should be of the form "SetMaxConcurrent ..." (golint)
    • Line 228: warning: comment on exported method TcpServer.AcceptedNum should be of the form "AcceptedNum ..." (golint)
    • Line 233: warning: comment on exported method TcpServer.HandleServerStop should be of the form "HandleServerStop ..." (golint)
    • Line 238: warning: comment on exported method TcpServer.EnableBroadcast should be of the form "EnableBroadcast ..." (golint)
    • Line 243: warning: comment on exported method TcpServer.Broadcast should be of the form "Broadcast ..." (golint)
    • Line 249: warning: should omit 2nd value from range; this loop is equivalent to `for c := range ...` (golint)
    • Line 255: warning: comment on exported method TcpServer.BroadcastWithFilter should be of the form "BroadcastWithFilter ..." (golint)
    • Line 261: warning: should omit 2nd value from range; this loop is equivalent to `for c := range ...` (golint)
    • Line 269: warning: comment on exported function NewTcpServer should be of the form "NewTcpServer ..." (golint)
    • Line 307: warning: comment on exported function NewRpcServer should be of the form "NewRpcServer ..." (golint)
    • kiss/graceful/module.go
    • Line 14: warning: exported var TIME_FOREVER should have comment or be unexported (golint)
    • Line 15: warning: exported var TIME_EXEC_BLOCK should have comment or be unexported (golint)
    • Line 16: warning: exported var DEFAULT_Q_SIZE should have comment or be unexported (golint)
    • Line 17: warning: error var ERR_MODULE_PUSH_TIMEOUT should have name of the form ErrFoo (golint)
    • Line 17: warning: exported var ERR_MODULE_PUSH_TIMEOUT should have comment or be unexported (golint)
    • Line 18: warning: error var ERR_MODULE_STOPPED should have name of the form ErrFoo (golint)
    • Line 18: warning: exported var ERR_MODULE_STOPPED should have comment or be unexported (golint)
    • Line 26: warning: exported type Module should have comment or be unexported (golint)
    • Line 47: warning: exported method Module.Init should have comment or be unexported (golint)
    • Line 54: warning: exported method Module.Start should have comment or be unexported (golint)
    • Line 111: warning: exported method Module.SetQSize should have comment or be unexported (golint)
    • Line 115: warning: exported method Module.EnableHeapTimer should have comment or be unexported (golint)
    • Line 119: warning: exported method Module.Next should have comment or be unexported (golint)
    • Line 128: warning: exported method Module.After should have comment or be unexported (golint)
    • Line 178: warning: exported method Module.Cancel should have comment or be unexported (golint)
    • Line 197: warning: exported method Module.Stop should have comment or be unexported (golint)
    • Line 208: warning: should omit 2nd value from range; this loop is equivalent to `for t := range ...` (golint)
    • Line 254: warning: exported method Module.Exec should have comment or be unexported (golint)
    • kiss/net/wsclient.go
    • Line 15: warning: comment on exported type WSClient should be of the form "WSClient ..." (with optional leading article) (golint)
    • Line 88: warning: comment on exported method WSClient.Keepalive should be of the form "Keepalive ..." (golint)
    • Line 108: warning: comment on exported method WSClient.RecvSeq should be of the form "RecvSeq ..." (golint)
    • Line 113: warning: comment on exported method WSClient.SendSeq should be of the form "SendSeq ..." (golint)
    • Line 118: warning: comment on exported method WSClient.RecvKey should be of the form "RecvKey ..." (golint)
    • Line 123: warning: comment on exported method WSClient.SendKey should be of the form "SendKey ..." (golint)
    • Line 128: warning: comment on exported method WSClient.Cipher should be of the form "Cipher ..." (golint)
    • Line 133: warning: comment on exported method WSClient.SetCipher should be of the form "SetCipher ..." (golint)
    • Line 138: warning: comment on exported method WSClient.UserData should be of the form "UserData ..." (golint)
    • Line 143: warning: comment on exported method WSClient.SetUserData should be of the form "SetUserData ..." (golint)
    • Line 148: warning: comment on exported method WSClient.Ip should be of the form "Ip ..." (golint)
    • Line 162: warning: comment on exported method WSClient.Port should be of the form "Port ..." (golint)
    • Line 175: warning: comment on exported method WSClient.SetRealIp should be of the form "SetRealIp ..." (golint)
    • Line 184: warning: comment on exported method WSClient.Bind should be of the form "Bind ..." (golint)
    • Line 192: warning: comment on exported method WSClient.SendMsg should be of the form "SendMsg ..." (golint)
    • Line 216: warning: comment on exported method WSClient.SendMsgWithCallback should be of the form "SendMsgWithCallback ..." (golint)
    • Line 240: warning: comment on exported method WSClient.SendData should be of the form "SendData ..." (golint)
    • Line 264: warning: comment on exported method WSClient.SendDataWithCallback should be of the form "SendDataWithCallback ..." (golint)
    • Line 288: warning: comment on exported method WSClient.Stop should be of the form "Stop ..." (golint)
    • Line 307: warning: comment on exported method WSClient.OnClose should be of the form "OnClose ..." (golint)
    • Line 314: warning: comment on exported method WSClient.CancelOnClose should be of the form "CancelOnClose ..." (golint)
    • Line 346: warning: comment on exported function NewWebsocketClient should be of the form "NewWebsocketClient ..." (golint)
    • Line 364: warning: exported function NewWebsocketTLSClient should have comment or be unexported (golint)
    • kiss/net/wsserver.go
    • Line 13: warning: exported type WSServer should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method WSServer.SetUpgrader should be of the form "SetUpgrader ..." (golint)
    • Line 139: warning: comment on exported method WSServer.CurrLoad should be of the form "CurrLoad ..." (golint)
    • Line 140: warning: receiver name server should be consistent with previous receiver name s for WSServer (golint)
    • Line 144: warning: comment on exported method WSServer.MaxLoad should be of the form "MaxLoad ..." (golint)
    • Line 145: warning: receiver name server should be consistent with previous receiver name s for WSServer (golint)
    • Line 149: warning: comment on exported method WSServer.SetMaxConcurrent should be of the form "SetMaxConcurrent ..." (golint)
    • Line 150: warning: receiver name server should be consistent with previous receiver name s for WSServer (golint)
    • Line 154: warning: comment on exported method WSServer.ClientNum should be of the form "ClientNum ..." (golint)
    • Line 161: warning: comment on exported method WSServer.HandleRequest should be of the form "HandleRequest ..." (golint)
    • Line 166: warning: comment on exported method WSServer.HandleConnect should be of the form "HandleConnect ..." (golint)
    • Line 171: warning: comment on exported method WSServer.HandleDisconnect should be of the form "HandleDisconnect ..." (golint)
    • Line 176: warning: comment on exported method WSServer.HandleWs should be of the form "HandleWs ..." (golint)
    • Line 181: warning: comment on exported method WSServer.HandleHttp should be of the form "HandleHttp ..." (golint)
    • Line 191: warning: should omit 2nd value from range; this loop is equivalent to `for client := range ...` (golint)
    • Line 196: warning: comment on exported method WSServer.Shutdown should be of the form "Shutdown ..." (golint)
    • Line 235: warning: comment on exported function NewWebsocketServer should be of the form "NewWebsocketServer ..." (golint)
    • kiss/event/event.go
    • Line 11: warning: exported var EventAll should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type Event should be of the form "Event ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported method Event.Subscribe should be of the form "Subscribe ..." (golint)
    • Line 54: warning: comment on exported method Event.SubscribeOnce should be of the form "SubscribeOnce ..." (golint)
    • Line 73: warning: comment on exported method Event.UnsubscribeWithoutLock should be of the form "UnsubscribeWithoutLock ..." (golint)
    • Line 84: warning: comment on exported method Event.Unsubscribe should be of the form "Unsubscribe ..." (golint)
    • Line 98: warning: comment on exported method Event.Publish should be of the form "Publish ..." (golint)
    • Line 145: warning: comment on exported function Subscribe should be of the form "Subscribe ..." (golint)
    • Line 150: warning: comment on exported function SubscribeOnce should be of the form "SubscribeOnce ..." (golint)
    • Line 155: warning: comment on exported function UnsubscribeWithoutLock should be of the form "UnsubscribeWithoutLock ..." (golint)
    • Line 160: warning: comment on exported function Unsubscribe should be of the form "Unsubscribe ..." (golint)
    • Line 165: warning: comment on exported function Publish should be of the form "Publish ..." (golint)
    • Line 170: warning: comment on exported function New should be of the form "New ..." (golint)
    • kiss/net/addr.go
    • Line 7: warning: comment on exported function GetLocalAddr should be of the form "GetLocalAddr ..." (golint)
    • kiss/net/tcpclient.go
    • Line 16: warning: comment on exported type TcpClient should be of the form "TcpClient ..." (with optional leading article) (golint)
    • Line 63: warning: comment on exported method TcpClient.Ip should be of the form "Ip ..." (golint)
    • Line 77: warning: comment on exported method TcpClient.Port should be of the form "Port ..." (golint)
    • Line 90: warning: comment on exported method TcpClient.Reader should be of the form "Reader ..." (golint)
    • Line 98: warning: comment on exported method TcpClient.SetRealIp should be of the form "SetRealIp ..." (golint)
    • Line 107: warning: comment on exported method TcpClient.Bind should be of the form "Bind ..." (golint)
    • Line 115: warning: comment on exported method TcpClient.OnClose should be of the form "OnClose ..." (golint)
    • Line 124: warning: comment on exported method TcpClient.CancelOnClose should be of the form "CancelOnClose ..." (golint)
    • Line 133: warning: comment on exported method TcpClient.SendMsg should be of the form "SendMsg ..." (golint)
    • Line 157: warning: comment on exported method TcpClient.SendMsgWithCallback should be of the form "SendMsgWithCallback ..." (golint)
    • Line 181: warning: comment on exported method TcpClient.SendData should be of the form "SendData ..." (golint)
    • Line 205: warning: comment on exported method TcpClient.SendDataWithCallback should be of the form "SendDataWithCallback ..." (golint)
    • Line 267: warning: comment on exported method TcpClient.RecvSeq should be of the form "RecvSeq ..." (golint)
    • Line 272: warning: comment on exported method TcpClient.SendSeq should be of the form "SendSeq ..." (golint)
    • Line 277: warning: comment on exported method TcpClient.RecvKey should be of the form "RecvKey ..." (golint)
    • Line 282: warning: comment on exported method TcpClient.SendKey should be of the form "SendKey ..." (golint)
    • Line 287: warning: comment on exported method TcpClient.Cipher should be of the form "Cipher ..." (golint)
    • Line 292: warning: comment on exported method TcpClient.SetCipher should be of the form "SetCipher ..." (golint)
    • Line 297: warning: comment on exported method TcpClient.UserData should be of the form "UserData ..." (golint)
    • Line 302: warning: comment on exported method TcpClient.SetUserData should be of the form "SetUserData ..." (golint)
    • Line 313: warning: comment on exported method TcpClient.Keepalive should be of the form "Keepalive ..." (golint)
    • Line 375: warning: comment on exported method TcpClient.Stop should be of the form "Stop ..." (golint)
    • Line 395: warning: comment on exported method TcpClient.Shutdown should be of the form "Shutdown ..." (golint)
    • Line 528: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 543: warning: exported function NewTcpClient should have comment or be unexported (golint)
    • kiss/sync/mutex.go
    • Line 49: warning: comment on exported function SetDebug should be of the form "SetDebug ..." (golint)
    • Line 65: warning: comment on exported type Mutex should be of the form "Mutex ..." (with optional leading article) (golint)
    • Line 72: warning: comment on exported method Mutex.Lock should be of the form "Lock ..." (golint)
    • Line 106: warning: comment on exported method Mutex.Unlock should be of the form "Unlock ..." (golint)
    • Line 114: warning: comment on exported type RWMutex should be of the form "RWMutex ..." (with optional leading article) (golint)
    • Line 121: warning: comment on exported method RWMutex.Lock should be of the form "Lock ..." (golint)
    • Line 155: warning: comment on exported method RWMutex.Unlock should be of the form "Unlock ..." (golint)
    • Line 163: warning: comment on exported method RWMutex.RLock should be of the form "RLock ..." (golint)
    • Line 197: warning: comment on exported method RWMutex.RUnlock should be of the form "RUnlock ..." (golint)
    • kiss/net/httpserver.go
    • Line 17: warning: comment on exported type HttpHandlerWrapper should be of the form "HttpHandlerWrapper ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported method HttpHandlerWrapper.EnablePProf should be of the form "EnablePProf ..." (golint)
    • Line 46: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 74: warning: comment on exported type HttpServer should be of the form "HttpServer ..." (with optional leading article) (golint)
    • Line 84: warning: comment on exported method HttpServer.Server should be of the form "Server ..." (golint)
    • Line 89: warning: comment on exported method HttpServer.EnablePProf should be of the form "EnablePProf ..." (golint)
    • Line 95: warning: comment on exported method HttpServer.Serve should be of the form "Serve ..." (golint)
    • Line 102: warning: comment on exported method HttpServer.ServeTLS should be of the form "ServeTLS ..." (golint)
    • Line 109: warning: comment on exported method HttpServer.Shutdown should be of the form "Shutdown ..." (golint)
    • Line 128: warning: comment on exported method HttpServer.SetSocketOpt should be of the form "SetSocketOpt ..." (golint)
    • Line 159: warning: comment on exported function NewHttpServer should be of the form "NewHttpServer ..." (golint)
    • Line 207: warning: comment on exported function ServeHttp should be of the form "ServeHttp ..." (golint)
    • Line 226: warning: comment on exported function ServeHttps should be of the form "ServeHttps ..." (golint)
    • kiss/sync/waitsession.go
    • Line 9: warning: comment on exported type WaitSession should be of the form "WaitSession ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported method WaitSession.Add should be of the form "Add ..." (golint)
    • Line 31: warning: comment on exported method WaitSession.Done should be of the form "Done ..." (golint)
    • Line 50: warning: comment on exported method WaitSession.Wait should be of the form "Wait ..." (golint)
    • Line 85: warning: comment on exported method WaitSession.Len should be of the form "Len ..." (golint)
    • kiss/util/timecount.go
    • Line 11: warning: exported type TimeCOunt should have comment or be unexported (golint)
    • Line 18: warning: exported method TimeCOunt.TimeUsed should have comment or be unexported (golint)
    • Line 49: warning: exported method TimeCOunt.Output should have comment or be unexported (golint)
    • Line 57: warning: exported method TimeCOunt.Warn should have comment or be unexported (golint)
    • Line 68: warning: exported function NewTimeCount should have comment or be unexported (golint)
    • kiss/net/config.go
    • Line 8: warning: comment on exported var DefaultSockNodelay should be of the form "DefaultSockNodelay ..." (golint)
    • Line 10: warning: comment on exported var DefaultSockKeepalive should be of the form "DefaultSockKeepalive ..." (golint)
    • Line 12: warning: comment on exported var DefaultSockBufioReaderEnabled should be of the form "DefaultSockBufioReaderEnabled ..." (golint)
    • Line 14: warning: comment on exported var DefaultSendQSize should be of the form "DefaultSendQSize ..." (golint)
    • Line 16: warning: comment on exported var DefaultSockRecvBufLen should be of the form "DefaultSockRecvBufLen ..." (golint)
    • Line 18: warning: comment on exported var DefaultSockSendBufLen should be of the form "DefaultSockSendBufLen ..." (golint)
    • Line 20: warning: comment on exported var DefaultSockPackMaxLen should be of the form "DefaultSockPackMaxLen ..." (golint)
    • Line 22: warning: comment on exported var DefaultSockLingerSeconds should be of the form "DefaultSockLingerSeconds ..." (golint)
    • Line 24: warning: comment on exported var DefaultSockKeepaliveTime should be of the form "DefaultSockKeepaliveTime ..." (golint)
    • Line 26: warning: comment on exported var DefaultSockRecvBlockTime should be of the form "DefaultSockRecvBlockTime ..." (golint)
    • Line 28: warning: comment on exported var DefaultSockSendBlockTime should be of the form "DefaultSockSendBlockTime ..." (golint)
    • Line 31: warning: comment on exported var DefaultSockRpcSendQSize should be of the form "DefaultSockRpcSendQSize ..." (golint)
    • Line 33: warning: comment on exported var DefaultSockRpcRecvBlockTime should be of the form "DefaultSockRpcRecvBlockTime ..." (golint)
    • Line 36: warning: comment on exported var DefaultMaxOnline should be of the form "DefaultMaxOnline ..." (golint)
    • Line 39: warning: comment on exported var DefaultReadTimeout should be of the form "DefaultReadTimeout ..." (golint)
    • Line 42: warning: comment on exported var DefaultWriteTimeout should be of the form "DefaultWriteTimeout ..." (golint)
    • Line 45: warning: comment on exported var DefaultShutdownTimeout should be of the form "DefaultShutdownTimeout ..." (golint)
    • Line 48: warning: comment on exported var DefaultReadLimit should be of the form "DefaultReadLimit ..." (golint)
    • Line 51: warning: comment on exported var DefaultEnableMultiSetRealIp should be of the form "DefaultEnableMultiSetRealIp ..." (golint)
    • kiss/timer/timer.go
    • Line 13: warning: exported const TIME_FOREVER should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported var DefaultTimer should have comment or be unexported (golint)
    • Line 20: warning: comment on exported type TimerItem should be of the form "TimerItem ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported method TimerItem.Cancel should be of the form "Cancel ..." (golint)
    • Line 33: warning: comment on exported method TimerItem.Reset should be of the form "Reset ..." (golint)
    • Line 38: warning: comment on exported type Timers should be of the form "Timers ..." (with optional leading article) (golint)
    • Line 55: warning: comment on exported method Timers.Push should be of the form "Push ..." (golint)
    • Line 63: warning: comment on exported method Timers.Remove should be of the form "Remove ..." (golint)
    • Line 78: warning: comment on exported method Timers.Pop should be of the form "Pop ..." (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 94: warning: comment on exported method Timers.Head should be of the form "Head ..." (golint)
    • Line 104: warning: comment on exported type Timer should be of the form "Timer ..." (with optional leading article) (golint)
    • Line 113: warning: comment on exported method Timer.After should be of the form "After ..." (golint)
    • Line 135: warning: comment on exported method Timer.AfterFunc should be of the form "AfterFunc ..." (golint)
    • Line 140: warning: comment on exported method Timer.Once should be of the form "Once ..." (golint)
    • Line 161: warning: comment on exported method Timer.Schedule should be of the form "Schedule ..." (golint)
    • Line 207: warning: comment on exported method Timer.Cancel should be of the form "Cancel ..." (golint)
    • Line 236: warning: comment on exported method Timer.Reset should be of the form "Reset ..." (golint)
    • Line 258: warning: comment on exported method Timer.Size should be of the form "Size ..." (golint)
    • Line 265: warning: comment on exported method Timer.Stop should be of the form "Stop ..." (golint)
    • Line 292: warning: comment on exported function After should be of the form "After ..." (golint)
    • Line 297: warning: comment on exported function AfterFunc should be of the form "AfterFunc ..." (golint)
    • Line 302: warning: comment on exported function Once should be of the form "Once ..." (golint)
    • Line 307: warning: comment on exported function Schedule should be of the form "Schedule ..." (golint)
    • Line 312: warning: comment on exported function Cancel should be of the form "Cancel ..." (golint)
    • Line 317: warning: comment on exported function New should be of the form "New ..." (golint)
    • kiss/crypto/padding.go
    • Line 5: warning: exported function PKCS5Padding should have comment or be unexported (golint)
    • Line 11: warning: exported function PKCS5UnPadding should have comment or be unexported (golint)
    • Line 17: warning: exported function ZeroPadding should have comment or be unexported (golint)
    • Line 23: warning: exported function ZeroUnPadding should have comment or be unexported (golint)
    • Line 30: warning: exported function PKCS7Padding should have comment or be unexported (golint)
    • Line 36: warning: exported function PKCS7UnPadding should have comment or be unexported (golint)
    • kiss/net/rpcclient.go
    • Line 11: warning: comment on exported type RpcMessage should be of the form "RpcMessage ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported type RpcClient should be of the form "RpcClient ..." (with optional leading article) (golint)
    • Line 143: warning: comment on exported method RpcClient.Codec should be of the form "Codec ..." (golint)
    • Line 148: warning: comment on exported method RpcClient.CallCmd should be of the form "CallCmd ..." (golint)
    • Line 164: warning: comment on exported method RpcClient.CallCmdWithTimeout should be of the form "CallCmdWithTimeout ..." (golint)
    • Line 180: warning: comment on exported method RpcClient.Call should be of the form "Call ..." (golint)
    • Line 199: warning: comment on exported method RpcClient.CallWithTimer should be of the form "CallWithTimer ..." (golint)
    • Line 275: warning: comment on exported function NewRpcClient should be of the form "NewRpcClient ..." (golint)
    • kiss/crypto/base64.go
    • Line 7: warning: exported function Base64Encode should have comment or be unexported (golint)
    • Line 11: warning: exported function Base64Decode should have comment or be unexported (golint)
    • kiss/crypto/bcrypt.go
    • Line 7: warning: exported function BcryptCheck should have comment or be unexported (golint)
    • Line 12: warning: exported function Bcrypt should have comment or be unexported (golint)
    • kiss/log/log.go
    • Line 16: warning: exported const LEVEL_PRINT should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported var BuildDir should have comment or be unexported (golint)
    • Line 111: warning: comment on exported function LevelText should be of the form "LevelText ..." (golint)
    • Line 134: warning: comment on exported type Log should be of the form "Log ..." (with optional leading article) (golint)
    • Line 145: warning: comment on exported type ILogWriter should be of the form "ILogWriter ..." (with optional leading article) (golint)
    • Line 150: warning: comment on exported type LogWriter should be of the form "LogWriter ..." (with optional leading article) (golint)
    • Line 155: warning: comment on exported method LogWriter.WriteLog should be of the form "WriteLog ..." (golint)
    • Line 163: warning: comment on exported function MultiLogWriter should be of the form "MultiLogWriter ..." (golint)
    • Line 172: warning: comment on exported type Logger should be of the form "Logger ..." (with optional leading article) (golint)
    • Line 201: warning: comment on exported method Logger.Printf should be of the form "Printf ..." (golint)
    • Line 219: warning: comment on exported method Logger.Println should be of the form "Println ..." (golint)
    • Line 237: warning: comment on exported method Logger.Debug should be of the form "Debug ..." (golint)
    • Line 259: warning: comment on exported method Logger.Info should be of the form "Info ..." (golint)
    • Line 281: warning: comment on exported method Logger.Warn should be of the form "Warn ..." (golint)
    • Line 325: warning: comment on exported method Logger.Panic should be of the form "Panic ..." (golint)
    • Line 349: warning: comment on exported method Logger.Fatal should be of the form "Fatal ..." (golint)
    • Line 372: warning: comment on exported method Logger.SetLevel should be of the form "SetLevel ..." (golint)
    • Line 381: warning: comment on exported method Logger.SetOutput should be of the form "SetOutput ..." (golint)
    • Line 386: warning: comment on exported method Logger.SetStructOutput should be of the form "SetStructOutput ..." (golint)
    • Line 391: warning: comment on exported method Logger.SetFormater should be of the form "SetFormater ..." (golint)
    • Line 443: warning: comment on exported method Logger.SetLogTimeFormat should be of the form "SetLogTimeFormat ..." (golint)
    • Line 448: warning: comment on exported function Printf should be of the form "Printf ..." (golint)
    • Line 453: warning: comment on exported function Println should be of the form "Println ..." (golint)
    • Line 458: warning: comment on exported function Debug should be of the form "Debug ..." (golint)
    • Line 463: warning: comment on exported function Info should be of the form "Info ..." (golint)
    • Line 468: warning: comment on exported function Warn should be of the form "Warn ..." (golint)
    • Line 473: warning: comment on exported function Error should be of the form "Error ..." (golint)
    • Line 478: warning: comment on exported function Panic should be of the form "Panic ..." (golint)
    • Line 483: warning: comment on exported function Fatal should be of the form "Fatal ..." (golint)
    • Line 488: warning: comment on exported function SetLevel should be of the form "SetLevel ..." (golint)
    • Line 493: warning: comment on exported function SetOutput should be of the form "SetOutput ..." (golint)
    • Line 498: warning: comment on exported function SetStructOutput should be of the form "SetStructOutput ..." (golint)
    • Line 503: warning: comment on exported function SetFormater should be of the form "SetFormater ..." (golint)
    • Line 508: warning: comment on exported function SetLogTimeFormat should be of the form "SetLogTimeFormat ..." (golint)
    • Line 513: warning: comment on exported function SetBuildDir should be of the form "SetBuildDir ..." (golint)
    • Line 528: warning: comment on exported function LogWithFormater should be of the form "LogWithFormater ..." (golint)
    • Line 560: warning: comment on exported function NewLogger should be of the form "NewLogger ..." (golint)
    • kiss/util/encoding.go
    • Line 13: warning: comment on exported function JsonAToB should be of the form "JsonAToB ..." (golint)
    • Line 23: warning: comment on exported function MsgpackAToB should be of the form "MsgpackAToB ..." (golint)
    • kiss/net/util.go
    • Line 8: warning: comment on exported function Ping should be of the form "Ping ..." (golint)
    • kiss/util/coroutine.go
    • Line 10: warning: exported var ErrWorkerPoolTimeout should have comment or be unexported (golint)
    • Line 14: warning: exported function Go should have comment or be unexported (golint)
    • Line 39: warning: exported type WorkerPool should have comment or be unexported (golint)
    • Line 61: warning: exported method WorkerPool.Go should have comment or be unexported (golint)
    • Line 88: warning: exported method WorkerPool.Stop should have comment or be unexported (golint)
    • Line 100: warning: exported function NewWorkerPool should have comment or be unexported (golint)
    • Line 113: warning: exported type LinkTask should have comment or be unexported (golint)
    • Line 119: warning: exported method LinkTask.Done should have comment or be unexported (golint)
    • Line 123: warning: exported method LinkTask.WaitPre should have comment or be unexported (golint)
    • Line 130: warning: exported type WorkerPoolLink should have comment or be unexported (golint)
    • Line 151: warning: exported method WorkerPoolLink.Go should have comment or be unexported (golint)
    • Line 180: warning: exported method WorkerPoolLink.Stop should have comment or be unexported (golint)
    • Line 192: warning: exported function NewWorkerPoolLink should have comment or be unexported (golint)
    • kiss/util/process.go
    • Line 11: warning: exported function GetProcName should have comment or be unexported (golint)
    • Line 24: warning: exported function ProcExist should have comment or be unexported (golint)
    • Line 51: warning: exported function CheckSingleProc should have comment or be unexported (golint)
    • kiss/crypto/des.go
    • Line 9: warning: exported function TripleDesEncrypt should have comment or be unexported (golint)
    • Line 22: warning: exported function TripleDesDecrypt should have comment or be unexported (golint)
    • Line 36: warning: exported function TripleDesB64Encrypt should have comment or be unexported (golint)
    • Line 46: warning: exported function TripleDesB64Decrypt should have comment or be unexported (golint)
    • kiss/util/coding.go
    • Line 7: warning: exported function GBKToUTF8 should have comment or be unexported (golint)
    • Line 11: warning: exported function UTF8ToGBK should have comment or be unexported (golint)
    • kiss/util/configloader.go
    • Line 10: warning: exported type ConfigLoader should have comment or be unexported (golint)
    • Line 18: warning: exported method ConfigLoader.Add should have comment or be unexported (golint)
    • Line 50: warning: exported method ConfigLoader.AddAuto should have comment or be unexported (golint)
    • Line 103: warning: exported function NewConfigLoader should have comment or be unexported (golint)
    • kiss/util/b32num.go
    • Line 23: warning: exported function B32ToString should have comment or be unexported (golint)
    • Line 32: warning: exported function B32ToNum should have comment or be unexported (golint)
    • kiss/net/codec.go
    • Line 14: warning: exported var DefaultCodec should have comment or be unexported (golint)
    • Line 18: warning: comment on exported type ICodec should be of the form "ICodec ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported type CodecGob should be of the form "CodecGob ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported method CodecGob.Marshal should be of the form "Marshal ..." (golint)
    • Line 38: warning: comment on exported method CodecGob.Unmarshal should be of the form "Unmarshal ..." (golint)
    • Line 43: warning: comment on exported type CodecJson should be of the form "CodecJson ..." (with optional leading article) (golint)
    • Line 46: warning: comment on exported method CodecJson.Marshal should be of the form "Marshal ..." (golint)
    • Line 51: warning: comment on exported method CodecJson.Unmarshal should be of the form "Unmarshal ..." (golint)
    • Line 56: warning: comment on exported type CodecMsgpack should be of the form "CodecMsgpack ..." (with optional leading article) (golint)
    • Line 59: warning: comment on exported method CodecMsgpack.Marshal should be of the form "Marshal ..." (golint)
    • Line 64: warning: comment on exported method CodecMsgpack.Unmarshal should be of the form "Unmarshal ..." (golint)
    • Line 69: warning: comment on exported type CodecProtobuf should be of the form "CodecProtobuf ..." (with optional leading article) (golint)
    • Line 72: warning: comment on exported method CodecProtobuf.Marshal should be of the form "Marshal ..." (golint)
    • Line 81: warning: comment on exported method CodecProtobuf.Unmarshal should be of the form "Unmarshal ..." (golint)
    • kiss/net/wsengine.go
    • Line 11: warning: comment on exported type WSEngine should be of the form "WSEngine ..." (with optional leading article) (golint)
    • Line 59: warning: comment on exported method WSEngine.RecvMsg should be of the form "RecvMsg ..." (golint)
    • Line 95: warning: comment on exported method WSEngine.Send should be of the form "Send ..." (golint)
    • Line 123: warning: comment on exported method WSEngine.HandleMessage should be of the form "HandleMessage ..." (golint)
    • Line 128: warning: comment on exported method WSEngine.Handle should be of the form "Handle ..." (golint)
    • Line 151: warning: comment on exported method WSEngine.HandleRecv should be of the form "HandleRecv ..." (golint)
    • Line 156: warning: comment on exported method WSEngine.HandleSend should be of the form "HandleSend ..." (golint)
    • Line 161: warning: comment on exported method WSEngine.OnSendQueueFull should be of the form "OnSendQueueFull ..." (golint)
    • Line 168: warning: comment on exported method WSEngine.HandleSendQueueFull should be of the form "HandleSendQueueFull ..." (golint)
    • Line 173: warning: comment on exported method WSEngine.NewCipher should be of the form "NewCipher ..." (golint)
    • Line 181: warning: comment on exported method WSEngine.HandleNewCipher should be of the form "HandleNewCipher ..." (golint)
    • Line 225: warning: comment on exported function NewWebsocketEngine should be of the form "NewWebsocketEngine ..." (golint)
    • kiss/crypto/aes.go
    • Line 8: warning: exported function AesCBCEncrypt should have comment or be unexported (golint)
    • Line 21: warning: exported function AesCBCDecrypt should have comment or be unexported (golint)
    • kiss/log/logfile.go
    • Line 13: warning: comment on exported type FileWriter should be of the form "FileWriter ..." (with optional leading article) (golint)
    • Line 40: warning: exported method FileWriter.Sync should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method FileWriter.WriteLog should be of the form "WriteLog ..." (golint)
    • Line 130: warning: comment on exported method FileWriter.WriteString should be of the form "WriteString ..." (golint)
    • Line 150: warning: comment on exported method FileWriter.SetFormater should be of the form "SetFormater ..." (golint)
    • Line 155: warning: comment on exported method FileWriter.Save should be of the form "Save ..." (golint)
    • Line 387: warning: comment on exported method FileWriter.Init should be of the form "Init ..." (golint)
    • kiss/net/cipher.go
    • Line 9: warning: exported const CipherGzipAll should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported type ICipher should be of the form "ICipher ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type CipherGzip should be of the form "CipherGzip ..." (with optional leading article) (golint)
    • Line 27: warning: exported method CipherGzip.Init should have comment or be unexported (golint)
    • Line 31: warning: comment on exported method CipherGzip.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 47: warning: comment on exported method CipherGzip.Decrypt should be of the form "Decrypt ..." (golint)
    • Line 70: warning: exported function NewCipherGzip should have comment or be unexported (golint)
    • kiss/crypto/rsa.go
    • Line 40: warning: exported function RsaEncrypt should have comment or be unexported (golint)
    • Line 53: warning: exported function RsaDecrypt should have comment or be unexported (golint)
    • Line 65: warning: exported function RsaVerify should have comment or be unexported (golint)
    • kiss/redis/redis.go
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 50: warning: exported type Redis should have comment or be unexported (golint)
    • Line 58: warning: exported method Redis.Client should have comment or be unexported (golint)
    • Line 68: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 71: warning: comment on exported method Redis.LoadScript should be of the form "LoadScript ..." (golint)
    • Line 111: warning: exported method Redis.EvalSha should have comment or be unexported (golint)
    • Line 130: warning: exported method Redis.Eval should have comment or be unexported (golint)
    • Line 136: warning: exported method Redis.Close should have comment or be unexported (golint)
    • Line 140: warning: exported function New should have comment or be unexported (golint)
    • Line 222: warning: exported type MgrConfig should have comment or be unexported (golint)
    • Line 227: warning: exported type RedisMgr should have comment or be unexported (golint)
    • Line 231: warning: exported method RedisMgr.Get should have comment or be unexported (golint)
    • Line 247: warning: exported method RedisMgr.ForEach should have comment or be unexported (golint)
    • Line 255: warning: exported function NewMgr should have comment or be unexported (golint)
    • kiss/util/bytestr.go
    • Line 16: warning: exported function BytesToStr should have comment or be unexported (golint)
    • Line 20: warning: exported function StrToBytes should have comment or be unexported (golint)
    • Line 26: warning: exported function RandString should have comment or be unexported (golint)
    • Line 34: warning: exported function RandBytes should have comment or be unexported (golint)
    • Line 42: warning: exported function RandCodeString should have comment or be unexported (golint)
    • Line 50: warning: exported function ShuffleString should have comment or be unexported (golint)
    • Line 60: warning: exported function ShuffleBytes should have comment or be unexported (golint)
    • Line 70: warning: exported function Float2String should have comment or be unexported (golint)

gocyclo98%

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.


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.

    • kiss/log/logfile.go
    • Line 188: warning: ineffectual assignment to filename (ineffassign)
    • Line 189: warning: ineffectual assignment to currfile (ineffassign)
    • Line 255: warning: ineffectual assignment to filename (ineffassign)
    • Line 256: warning: ineffectual assignment to currfile (ineffassign)
    • Line 316: warning: ineffectual assignment to filename (ineffassign)
    • Line 317: warning: ineffectual assignment to currfile (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!