Preparing report...

Report for github.com/koangel/grapeNet

A    Great!    Found 77 issues across 80 files

Tweet

gofmt97%

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!


gocyclo93%

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.

    • grapeNet/Websocket/WSConn.go
    • Line 380: warning: cyclomatic complexity 17 of function (*WSConn).writePump() is high (> 15) (gocyclo)
    • Line 251: warning: cyclomatic complexity 17 of function (*WSConn).recvPump() is high (> 15) (gocyclo)

golint5%

Golint is a linter for Go source code.

    • grapeNet/Continer/tickLimit.go
    • Line 1: warning: package comment should be of the form "Package continer ..." (golint)
    • Line 16: warning: comment on exported type TickWriter should be of the form "TickWriter ..." (with optional leading article) (golint)
    • Line 18: warning: exported type ExecProc should have comment or be unexported (golint)
    • Line 21: warning: exported type TickLimit should have comment or be unexported (golint)
    • Line 45: warning: exported function GetHostIndex should have comment or be unexported (golint)
    • Line 50: warning: exported function NewTickerLimit should have comment or be unexported (golint)
    • Line 71: warning: exported method TickLimit.Name should have comment or be unexported (golint)
    • Line 75: warning: exported method TickLimit.Index should have comment or be unexported (golint)
    • Line 98: warning: exported method TickLimit.Add should have comment or be unexported (golint)
    • Line 105: warning: exported method TickLimit.StartProc should have comment or be unexported (golint)
    • Line 112: warning: exported method TickLimit.Stop should have comment or be unexported (golint)
    • Line 154: warning: exported method TickLimit.Data should have comment or be unexported (golint)
    • Line 167: warning: exported method TickLimit.Len should have comment or be unexported (golint)
    • grapeNet/samples/TcpNet/echo_client/main.go
    • Line 23: warning: exported function RecvEchoMsg should have comment or be unexported (golint)
    • Line 30: warning: exported function OnClose should have comment or be unexported (golint)
    • Line 36: warning: exported function RandStringRunes should have comment or be unexported (golint)
    • grapeNet/Websocketv2/WSNetwork.go
    • Line 1: warning: package comment should be of the form "Package grapeWSNetv2 ..." (golint)
    • Line 6: warning: don't use MixedCaps in package name; grapeWSNetv2 should be grapewsnetv2 (golint)
    • Line 23: warning: exported const BinaryMsg should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type WSNetwork should have comment or be unexported (golint)
    • Line 68: warning: exported var HandlerProc should have comment or be unexported (golint)
    • Line 71: warning: comment on exported function NetEmptyWS should be of the form "NetEmptyWS ..." (golint)
    • Line 142: warning: exported function NewWebsocket should have comment or be unexported (golint)
    • Line 214: warning: comment on exported method WSNetwork.CheckPath should be of the form "CheckPath ..." (golint)
    • Line 220: warning: exported method WSNetwork.CheckOrigin should have comment or be unexported (golint)
    • Line 232: warning: exported method WSNetwork.SetTextMessage should have comment or be unexported (golint)
    • Line 236: warning: exported method WSNetwork.SetBinaryMessage should have comment or be unexported (golint)
    • Line 240: warning: exported method WSNetwork.RemoveSession should have comment or be unexported (golint)
    • Line 244: warning: exported method WSNetwork.Dial should have comment or be unexported (golint)
    • Line 259: warning: exported method WSNetwork.Runnable should have comment or be unexported (golint)
    • Line 268: warning: receiver name wn should be consistent with previous receiver name c for WSNetwork (golint)
    • Line 274: warning: receiver name wn should be consistent with previous receiver name c for WSNetwork (golint)
    • Line 302: warning: receiver name wn should be consistent with previous receiver name c for WSNetwork (golint)
    • grapeNet/Etcd/etcd_system.go
    • Line 7: warning: don't use MixedCaps in package name; grapeEtcd should be grapeetcd (golint)
    • Line 24: warning: comment on exported var EtcdCli should be of the form "EtcdCli ..." (golint)
    • Line 29: warning: comment on exported var IsAuth should be of the form "IsAuth ..." (golint)
    • Line 31: warning: exported var AuthUserName should have comment or be unexported (golint)
    • Line 42: warning: exported type M should have comment or be unexported (golint)
    • Line 44: warning: exported function Dial should have comment or be unexported (golint)
    • Line 48: warning: exported function DialTimeout should have comment or be unexported (golint)
    • Line 73: warning: exported function Close should have comment or be unexported (golint)
    • Line 84: warning: exported function SetFormatter should have comment or be unexported (golint)
    • Line 88: warning: comment on exported function Read should be of the form "Read ..." (golint)
    • Line 110: warning: exported function ReadAll should have comment or be unexported (golint)
    • Line 125: warning: exported function UnmarshalKey should have comment or be unexported (golint)
    • Line 134: warning: exported function Write should have comment or be unexported (golint)
    • Line 145: warning: exported function WriteTTL should have comment or be unexported (golint)
    • Line 160: warning: exported function WriteGrent should have comment or be unexported (golint)
    • Line 171: warning: exported function MarshalKey should have comment or be unexported (golint)
    • Line 180: warning: exported function MarshalKeyTTL should have comment or be unexported (golint)
    • Line 194: warning: comment on exported function Grent should be of the form "Grent ..." (golint)
    • Line 200: warning: exported function TimeToLive should have comment or be unexported (golint)
    • Line 205: warning: comment on exported function Keeplive should be of the form "Keeplive ..." (golint)
    • Line 210: warning: comment on exported function KeepliveOnce should be of the form "KeepliveOnce ..." (golint)
    • Line 215: warning: comment on exported function Revoke should be of the form "Revoke ..." (golint)
    • Line 220: warning: comment on exported function Delete should be of the form "Delete ..." (golint)
    • grapeNet/Utils/Binarys.go
    • Line 1: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 19: warning: exported function MergeBinary should have comment or be unexported (golint)
    • Line 37: warning: comment on exported function SplitBinary should be of the form "SplitBinary ..." (golint)
    • Line 59: warning: comment on exported function FastGZipMsg should be of the form "FastGZipMsg ..." (golint)
    • Line 82: warning: comment on exported function FastUnGZipMsg should be of the form "FastUnGZipMsg ..." (golint)
    • grapeNet/Script/LuaManager.go
    • Line 1: warning: package comment should be of the form "Package grapeLua ..." (golint)
    • Line 8: warning: don't use MixedCaps in package name; grapeLua should be grapelua (golint)
    • Line 16: warning: exported type LuaManager should have comment or be unexported (golint)
    • Line 22: warning: exported var Ins should have comment or be unexported (golint)
    • Line 26: warning: comment on exported function NewFromFile should be of the form "NewFromFile ..." (golint)
    • Line 46: warning: comment on exported function NewFromData should be of the form "NewFromData ..." (golint)
    • Line 65: warning: exported function NewVM should have comment or be unexported (golint)
    • Line 92: warning: exported method LuaManager.Find should have comment or be unexported (golint)
    • Line 104: warning: exported method LuaManager.Call should have comment or be unexported (golint)
    • Line 113: warning: exported method LuaManager.BindToAll should have comment or be unexported (golint)
    • Line 122: warning: comment on exported method LuaManager.SearchData should be of the form "SearchData ..." (golint)
    • grapeNet/Net/Network.go
    • Line 7: warning: don't use MixedCaps in package name; grapeNet should be grapenet (golint)
    • Line 22: warning: exported type TCPNetwork should have comment or be unexported (golint)
    • Line 63: warning: exported var HandlerProc should have comment or be unexported (golint)
    • Line 66: warning: comment on exported function NewTcpServer should be of the form "NewTcpServer ..." (golint)
    • Line 108: warning: exported function NewEmptyTcp should have comment or be unexported (golint)
    • Line 141: warning: comment on exported method TCPNetwork.RemoveSession should be of the form "RemoveSession ..." (golint)
    • Line 147: warning: exported method TCPNetwork.Dial should have comment or be unexported (golint)
    • Line 222: warning: exported method TCPNetwork.Runnable should have comment or be unexported (golint)
    • grapeNet/Utils/Panic.go
    • Line 1: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 8: warning: exported function PanicTrace should have comment or be unexported (golint)
    • grapeNet/SignHelper/signHelper.go
    • Line 1: warning: package comment should be of the form "Package grapeSign ..." (golint)
    • Line 10: warning: don't use MixedCaps in package name; grapeSign should be grapesign (golint)
    • Line 24: warning: exported var IsUseKey should have comment or be unexported (golint)
    • Line 33: warning: exported function SortMap2Str should have comment or be unexported (golint)
    • Line 35: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 61: warning: exported function Type2Map should have comment or be unexported (golint)
    • Line 136: warning: exported function SignMD5NE should have comment or be unexported (golint)
    • Line 141: warning: exported function SignSha1NE should have comment or be unexported (golint)
    • Line 146: warning: exported function KeySignMD5NE should have comment or be unexported (golint)
    • Line 151: warning: exported function KeySignSha1NE should have comment or be unexported (golint)
    • Line 156: warning: exported function SignMD5 should have comment or be unexported (golint)
    • Line 160: warning: exported function SignSha1 should have comment or be unexported (golint)
    • Line 164: warning: exported function KeySignMD5 should have comment or be unexported (golint)
    • Line 182: warning: exported function KeySignSha1 should have comment or be unexported (golint)
    • grapeNet/Websocket/WSConn.go
    • Line 1: warning: don't use MixedCaps in package name; grapeWSNet should be grapewsnet (golint)
    • Line 27: warning: exported type WSConn should have comment or be unexported (golint)
    • Line 56: warning: exported const ReadWaitPing should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: comment on exported function NewWConn should be of the form "NewWConn ..." (golint)
    • Line 93: warning: exported function NewDial should have comment or be unexported (golint)
    • Line 134: warning: comment on exported method WSConn.SetUserData should be of the form "SetUserData ..." (golint)
    • Line 140: warning: exported method WSConn.GetUserData should have comment or be unexported (golint)
    • Line 144: warning: exported method WSConn.GetNetConn should have comment or be unexported (golint)
    • Line 152: warning: exported method WSConn.RemoteAddr should have comment or be unexported (golint)
    • Line 159: warning: exported method WSConn.GetConn should have comment or be unexported (golint)
    • Line 167: warning: exported method WSConn.SetReadTimeout should have comment or be unexported (golint)
    • Line 171: warning: exported method WSConn.SetWriteTimeout should have comment or be unexported (golint)
    • Line 445: warning: exported method WSConn.Send should have comment or be unexported (golint)
    • Line 462: warning: exported method WSConn.SendPak should have comment or be unexported (golint)
    • Line 481: warning: exported method WSConn.SendDirect should have comment or be unexported (golint)
    • Line 497: warning: exported method WSConn.SendPakDirect should have comment or be unexported (golint)
    • Line 515: warning: exported method WSConn.CloseSocket should have comment or be unexported (golint)
    • Line 523: warning: exported method WSConn.Close should have comment or be unexported (golint)
    • Line 538: warning: exported method WSConn.RemoveData should have comment or be unexported (golint)
    • Line 573: warning: exported method WSConn.InitData should have comment or be unexported (golint)
    • grapeNet/Websocket/WSNetwork.go
    • Line 1: warning: package comment should be of the form "Package grapeWSNet ..." (golint)
    • Line 6: warning: don't use MixedCaps in package name; grapeWSNet should be grapewsnet (golint)
    • Line 21: warning: exported const BinaryMsg should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type WSNetwork should have comment or be unexported (golint)
    • Line 65: warning: exported var HandlerProc should have comment or be unexported (golint)
    • Line 68: warning: comment on exported function NetEmptyWS should be of the form "NetEmptyWS ..." (golint)
    • Line 110: warning: exported function NewWebsocket should have comment or be unexported (golint)
    • Line 151: warning: comment on exported method WSNetwork.SetTextMessage should be of the form "SetTextMessage ..." (golint)
    • Line 157: warning: exported method WSNetwork.SetBinaryMessage should have comment or be unexported (golint)
    • Line 161: warning: exported method WSNetwork.RemoveSession should have comment or be unexported (golint)
    • Line 165: warning: exported method WSNetwork.Dial should have comment or be unexported (golint)
    • Line 180: warning: exported method WSNetwork.Runnable should have comment or be unexported (golint)
    • Line 189: warning: receiver name wn should be consistent with previous receiver name c for WSNetwork (golint)
    • Line 227: warning: receiver name wn should be consistent with previous receiver name c for WSNetwork (golint)
    • Line 233: warning: receiver name wn should be consistent with previous receiver name c for WSNetwork (golint)
    • grapeNet/Codec/Codec.go
    • Line 1: warning: package comment should be of the form "Package grapeCodec ..." (golint)
    • Line 8: warning: don't use MixedCaps in package name; grapeCodec should be grapecodec (golint)
    • Line 19: warning: comment on exported function RA should be of the form "RA ..." (golint)
    • Line 30: warning: comment on exported function R should be of the form "R ..." (golint)
    • Line 38: warning: exported function New should have comment or be unexported (golint)
    • grapeNet/Utils/syncQueue.go
    • Line 1: warning: package comment should be of the form "Package Utils ..." (golint)
    • Line 7: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 15: warning: exported type SyncQueue should have comment or be unexported (golint)
    • Line 21: warning: exported function NewSQueue should have comment or be unexported (golint)
    • Line 30: warning: exported method SyncQueue.Push should have comment or be unexported (golint)
    • Line 38: warning: exported method SyncQueue.Pop should have comment or be unexported (golint)
    • grapeNet/Continer/itemBox.go
    • Line 1: warning: package comment should be of the form "Package continer ..." (golint)
    • Line 25: warning: exported const EmptyGrid should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const Inventory should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type ItemElement should have comment or be unexported (golint)
    • Line 50: warning: exported method ItemElement.Position should have comment or be unexported (golint)
    • Line 54: warning: exported method ItemElement.Column should have comment or be unexported (golint)
    • Line 58: warning: exported method ItemElement.Row should have comment or be unexported (golint)
    • Line 62: warning: exported method ItemElement.IsEmpty should have comment or be unexported (golint)
    • Line 66: warning: exported method ItemElement.SetValue should have comment or be unexported (golint)
    • Line 75: warning: exported method ItemElement.Remove should have comment or be unexported (golint)
    • Line 84: warning: exported method ItemElement.Value should have comment or be unexported (golint)
    • Line 93: warning: exported type ItemBox should have comment or be unexported (golint)
    • Line 117: warning: comment on exported function NewBox should be of the form "NewBox ..." (golint)
    • Line 149: warning: comment on exported method ItemBox.Init should be of the form "Init ..." (golint)
    • Line 182: warning: exported method ItemBox.SetFormatter should have comment or be unexported (golint)
    • Line 186: warning: comment on exported method ItemBox.ToBinary should be of the form "ToBinary ..." (golint)
    • Line 221: warning: exported method ItemBox.FromBinary should have comment or be unexported (golint)
    • Line 277: warning: comment on exported method ItemBox.Array should be of the form "Array ..." (golint)
    • Line 291: warning: comment on exported method ItemBox.ItemCount should be of the form "ItemCount ..." (golint)
    • Line 297: warning: comment on exported method ItemBox.GridCount should be of the form "GridCount ..." (golint)
    • Line 302: warning: comment on exported method ItemBox.EmptyGrid should be of the form "EmptyGrid ..." (golint)
    • Line 307: warning: comment on exported method ItemBox.IsFull should be of the form "IsFull ..." (golint)
    • Line 312: warning: comment on exported method ItemBox.EmptyGird should be of the form "EmptyGird ..." (golint)
    • Line 327: warning: comment on exported method ItemBox.Push should be of the form "Push ..." (golint)
    • Line 330: warning: error should be the last type when returning multiple items (golint)
    • Line 344: warning: comment on exported method ItemBox.PushCell should be of the form "PushCell ..." (golint)
    • Line 345: warning: error should be the last type when returning multiple items (golint)
    • Line 383: warning: comment on exported method ItemBox.PushAndSwap should be of the form "PushAndSwap ..." (golint)
    • Line 414: warning: comment on exported method ItemBox.Peek should be of the form "Peek ..." (golint)
    • Line 430: warning: comment on exported method ItemBox.PeekValue should be of the form "PeekValue ..." (golint)
    • Line 448: warning: comment on exported method ItemBox.PeekInfo should be of the form "PeekInfo ..." (golint)
    • Line 465: warning: comment on exported method ItemBox.Move should be of the form "Move ..." (golint)
    • Line 499: warning: exported method ItemBox.SwapElement should have comment or be unexported (golint)
    • Line 503: warning: exported method ItemBox.Remove should have comment or be unexported (golint)
    • Line 521: warning: comment on exported method ItemBox.Sort should be of the form "Sort ..." (golint)
    • Line 554: warning: comment on exported method ItemBox.Range should be of the form "Range ..." (golint)
    • Line 566: warning: comment on exported method ItemBox.Reverse should be of the form "Reverse ..." (golint)
    • grapeNet/Utils/avgLimit.go
    • Line 1: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 8: warning: comment on exported type AVGLimit should be of the form "AVGLimit ..." (with optional leading article) (golint)
    • Line 16: warning: exported method AVGLimit.Add should have comment or be unexported (golint)
    • Line 24: warning: exported method AVGLimit.Reset should have comment or be unexported (golint)
    • Line 39: warning: exported method AVGLimit.Value should have comment or be unexported (golint)
    • grapeNet/Stream/BytesConvert.go
    • Line 1: warning: package comment should be of the form "Package grapeStream ..." (golint)
    • Line 7: warning: don't use MixedCaps in package name; grapeStream should be grapestream (golint)
    • Line 11: warning: comment on exported function BTUint8 should be of the form "BTUint8 ..." (golint)
    • Line 16: warning: exported function BTInt8 should have comment or be unexported (golint)
    • Line 20: warning: exported function BTUint16 should have comment or be unexported (golint)
    • Line 26: warning: exported function BTInt16 should have comment or be unexported (golint)
    • Line 32: warning: exported function BTUint32 should have comment or be unexported (golint)
    • Line 40: warning: exported function BTInt32 should have comment or be unexported (golint)
    • Line 48: warning: exported function BTUint64 should have comment or be unexported (golint)
    • Line 60: warning: exported function BTInt64 should have comment or be unexported (golint)
    • Line 72: warning: exported function BTFloat32 should have comment or be unexported (golint)
    • Line 76: warning: exported function BTFloat64 should have comment or be unexported (golint)
    • Line 80: warning: comment on exported function U8TBytes should be of the form "U8TBytes ..." (golint)
    • Line 88: warning: exported function I8TBytes should have comment or be unexported (golint)
    • Line 94: warning: exported function U16TBytes should have comment or be unexported (golint)
    • Line 101: warning: exported function I16TBytes should have comment or be unexported (golint)
    • Line 108: warning: exported function U32TBytes should have comment or be unexported (golint)
    • Line 117: warning: exported function I32TBytes should have comment or be unexported (golint)
    • Line 126: warning: exported function U64TBytes should have comment or be unexported (golint)
    • Line 140: warning: exported function I64TBytes should have comment or be unexported (golint)
    • Line 154: warning: exported function F32TBytes should have comment or be unexported (golint)
    • Line 158: warning: exported function F64TBytes should have comment or be unexported (golint)
    • Line 162: warning: exported function A62toi should have comment or be unexported (golint)
    • Line 191: warning: exported function CNV10to62 should have comment or be unexported (golint)
    • Line 207: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • grapeNet/Script/LuaTable.go
    • Line 1: warning: package comment should be of the form "Package grapeLua ..." (golint)
    • Line 8: warning: don't use MixedCaps in package name; grapeLua should be grapelua (golint)
    • Line 17: warning: comment on exported method LuaVM.GetTable should be of the form "GetTable ..." (golint)
    • grapeNet/KcpNet/KcpConfig.go
    • Line 1: warning: don't use MixedCaps in package name; kcpNet should be kcpnet (golint)
    • Line 41: warning: comment on exported type KcpConfig should be of the form "KcpConfig ..." (with optional leading article) (golint)
    • Line 72: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 82: warning: exported function ParseJSONConfig should have comment or be unexported (golint)
    • grapeNet/KcpNet/KcpNetwork.go
    • Line 1: warning: don't use MixedCaps in package name; kcpNet should be kcpnet (golint)
    • Line 13: warning: exported type KcpNetwork should have comment or be unexported (golint)
    • Line 56: warning: exported var HandlerProc should have comment or be unexported (golint)
    • Line 108: warning: exported function NewKcpServer should have comment or be unexported (golint)
    • Line 153: warning: exported function NewEmptyKcp should have comment or be unexported (golint)
    • Line 189: warning: comment on exported method KcpNetwork.RemoveSession should be of the form "RemoveSession ..." (golint)
    • Line 195: warning: exported method KcpNetwork.Dial should have comment or be unexported (golint)
    • Line 269: warning: exported method KcpNetwork.Runnable should have comment or be unexported (golint)
    • grapeNet/Utils/hashFast.go
    • Line 1: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 14: warning: exported function HMac_SHA1Bytes should have comment or be unexported (golint)
    • Line 14: warning: don't use underscores in Go names; func HMac_SHA1Bytes should be HMacSHA1Bytes (golint)
    • Line 20: warning: exported function HMac_MD5Bytes should have comment or be unexported (golint)
    • Line 20: warning: don't use underscores in Go names; func HMac_MD5Bytes should be HMacMD5Bytes (golint)
    • Line 26: warning: exported function HMac_SHA256Bytes should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; func HMac_SHA256Bytes should be HMacSHA256Bytes (golint)
    • Line 32: warning: exported function HMac_SHA512Bytes should have comment or be unexported (golint)
    • Line 32: warning: don't use underscores in Go names; func HMac_SHA512Bytes should be HMacSHA512Bytes (golint)
    • Line 38: warning: exported function SHA1Bytes should have comment or be unexported (golint)
    • Line 44: warning: exported function MD5Bytes should have comment or be unexported (golint)
    • Line 50: warning: exported function SHA256Bytes should have comment or be unexported (golint)
    • Line 56: warning: exported function SHA512Bytes should have comment or be unexported (golint)
    • Line 62: warning: exported function Crc32IEEE should have comment or be unexported (golint)
    • Line 66: warning: exported function Crc64ISO should have comment or be unexported (golint)
    • Line 70: warning: exported function Crc64ECMA should have comment or be unexported (golint)
    • Line 74: warning: exported function SHA1 should have comment or be unexported (golint)
    • Line 78: warning: exported function MD5 should have comment or be unexported (golint)
    • Line 82: warning: exported function SHA256 should have comment or be unexported (golint)
    • Line 86: warning: exported function SHA512 should have comment or be unexported (golint)
    • Line 90: warning: exported function HMac_SHA1 should have comment or be unexported (golint)
    • Line 90: warning: don't use underscores in Go names; func HMac_SHA1 should be HMacSHA1 (golint)
    • Line 94: warning: exported function HMac_MD5 should have comment or be unexported (golint)
    • Line 94: warning: don't use underscores in Go names; func HMac_MD5 should be HMacMD5 (golint)
    • Line 98: warning: exported function HMac_SHA256 should have comment or be unexported (golint)
    • Line 98: warning: don't use underscores in Go names; func HMac_SHA256 should be HMacSHA256 (golint)
    • Line 102: warning: exported function HMac_SHA512 should have comment or be unexported (golint)
    • Line 102: warning: don't use underscores in Go names; func HMac_SHA512 should be HMacSHA512 (golint)
    • grapeNet/CSV/ParserCsv.go
    • Line 1: warning: package comment should be of the form "Package grapeCSV ..." (golint)
    • Line 6: warning: don't use MixedCaps in package name; grapeCSV should be grapecsv (golint)
    • Line 18: warning: don't use underscores in Go names; const Default_token should be DefaultToken (golint)
    • Line 18: warning: exported const Default_token should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; const Default_comment should be DefaultComment (golint)
    • Line 21: warning: don't use underscores in Go names; const tag_column should be tagColumn (golint)
    • Line 22: warning: don't use underscores in Go names; const tag_index should be tagIndex (golint)
    • Line 25: warning: exported type ParserCSV should have comment or be unexported (golint)
    • Line 50: warning: exported function NewCSVDefault should have comment or be unexported (golint)
    • Line 63: warning: exported function NewCSV should have comment or be unexported (golint)
    • Line 76: warning: exported function CreateCSV should have comment or be unexported (golint)
    • Line 94: warning: exported method ParserCSV.Create should have comment or be unexported (golint)
    • Line 113: warning: exported method ParserCSV.OpenDefault should have comment or be unexported (golint)
    • Line 117: warning: exported method ParserCSV.Open should have comment or be unexported (golint)
    • Line 163: warning: exported method ParserCSV.CloseAll should have comment or be unexported (golint)
    • Line 181: warning: exported method ParserCSV.SaveAll should have comment or be unexported (golint)
    • Line 194: warning: exported method ParserCSV.RowCount should have comment or be unexported (golint)
    • Line 198: warning: exported method ParserCSV.GetRow should have comment or be unexported (golint)
    • Line 212: warning: exported method ParserCSV.SetHeader should have comment or be unexported (golint)
    • Line 243: warning: exported method ParserCSV.SetRow should have comment or be unexported (golint)
    • Line 264: warning: exported method ParserCSV.Append should have comment or be unexported (golint)
    • grapeNet/ConnManager/UUID.go
    • Line 1: warning: package comment should be of the form "Package grapeConn ..." (golint)
    • Line 6: warning: don't use MixedCaps in package name; grapeConn should be grapeconn (golint)
    • Line 19: warning: comment on exported function CreateUUID should be of the form "CreateUUID ..." (golint)
    • grapeNet/Script/LuaScript.go
    • Line 1: warning: package comment should be of the form "Package grapeLua ..." (golint)
    • Line 8: warning: don't use MixedCaps in package name; grapeLua should be grapelua (golint)
    • Line 19: warning: exported type LuaVM should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method LuaVM.New should be of the form "New ..." (golint)
    • Line 44: warning: comment on exported method LuaVM.Update should be of the form "Update ..." (golint)
    • Line 66: warning: exported method LuaVM.DoString should have comment or be unexported (golint)
    • Line 77: warning: exported method LuaVM.DoFile should have comment or be unexported (golint)
    • Line 93: warning: exported method LuaVM.Close should have comment or be unexported (golint)
    • Line 105: warning: exported method LuaVM.State should have comment or be unexported (golint)
    • grapeNet/Net/TcpConn.go
    • Line 7: warning: don't use MixedCaps in package name; grapeNet should be grapenet (golint)
    • Line 27: warning: exported type TcpConn should have comment or be unexported (golint)
    • Line 51: warning: exported const ReadWaitPing should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported const RMStream should have comment (or a comment on this block) or be unexported (golint)
    • Line 67: warning: exported function EmptyConn should have comment or be unexported (golint)
    • Line 90: warning: exported function NewConn should have comment or be unexported (golint)
    • Line 101: warning: exported function NewDial should have comment or be unexported (golint)
    • Line 125: warning: comment on exported method TcpConn.SetReadTime should be of the form "SetReadTime ..." (golint)
    • Line 131: warning: exported method TcpConn.SetWriteTime should have comment or be unexported (golint)
    • Line 135: warning: exported method TcpConn.SetUserData should have comment or be unexported (golint)
    • Line 139: warning: exported method TcpConn.GetUserData should have comment or be unexported (golint)
    • Line 143: warning: exported method TcpConn.GetNetConn should have comment or be unexported (golint)
    • Line 147: warning: exported method TcpConn.RemoteAddr should have comment or be unexported (golint)
    • Line 464: warning: exported method TcpConn.Send should have comment or be unexported (golint)
    • Line 495: warning: exported method TcpConn.SendPak should have comment or be unexported (golint)
    • Line 513: warning: exported method TcpConn.SendDirect should have comment or be unexported (golint)
    • Line 551: warning: exported method TcpConn.SendPakDirect should have comment or be unexported (golint)
    • Line 569: warning: exported method TcpConn.CloseSocket should have comment or be unexported (golint)
    • Line 577: warning: exported method TcpConn.Close should have comment or be unexported (golint)
    • Line 591: warning: exported method TcpConn.RemoveData should have comment or be unexported (golint)
    • Line 607: warning: exported method TcpConn.InitData should have comment or be unexported (golint)
    • grapeNet/Continer/syncList.go
    • Line 1: warning: package comment should be of the form "Package continer ..." (golint)
    • Line 13: warning: exported type SList should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported method SList.Len should have comment or be unexported (golint)
    • Line 28: warning: exported method SList.Push should have comment or be unexported (golint)
    • Line 35: warning: exported method SList.First should have comment or be unexported (golint)
    • Line 42: warning: exported method SList.Back should have comment or be unexported (golint)
    • Line 49: warning: exported method SList.Clear should have comment or be unexported (golint)
    • Line 56: warning: exported method SList.Range should have comment or be unexported (golint)
    • Line 67: warning: exported method SList.ReverseRange should have comment or be unexported (golint)
    • Line 78: warning: exported method SList.Search should have comment or be unexported (golint)
    • Line 91: warning: exported method SList.Remove should have comment or be unexported (golint)
    • Line 103: warning: exported method SList.Sort should have comment or be unexported (golint)
    • Line 130: warning: exported method SList.RemoveRanges should have comment or be unexported (golint)
    • grapeNet/Utils/limits.go
    • Line 1: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 9: warning: comment on exported type LimitContiner should be of the form "LimitContiner ..." (with optional leading article) (golint)
    • Line 17: warning: exported function NewLC should have comment or be unexported (golint)
    • Line 24: warning: exported method LimitContiner.Add should have comment or be unexported (golint)
    • Line 35: warning: exported method LimitContiner.Clear should have comment or be unexported (golint)
    • Line 42: warning: exported method LimitContiner.Back should have comment or be unexported (golint)
    • Line 57: warning: exported method LimitContiner.Front should have comment or be unexported (golint)
    • Line 72: warning: exported method LimitContiner.Foreach should have comment or be unexported (golint)
    • Line 81: warning: exported method LimitContiner.Search should have comment or be unexported (golint)
    • Line 94: warning: exported method LimitContiner.MatchLimit should have comment or be unexported (golint)
    • Line 112: warning: exported method LimitContiner.Len should have comment or be unexported (golint)
    • Line 119: warning: exported type StringLimit should have comment or be unexported (golint)
    • Line 123: warning: exported function NewSL should have comment or be unexported (golint)
    • Line 129: warning: exported method StringLimit.Push should have comment or be unexported (golint)
    • Line 133: warning: exported method StringLimit.LineNSuffix should have comment or be unexported (golint)
    • Line 155: warning: exported method StringLimit.MatchPrefix should have comment or be unexported (golint)
    • Line 168: warning: exported method StringLimit.Match should have comment or be unexported (golint)
    • Line 174: warning: exported method StringLimit.LineMatch should have comment or be unexported (golint)
    • Line 192: warning: exported method StringLimit.Strings should have comment or be unexported (golint)
    • Line 201: warning: exported method StringLimit.Search should have comment or be unexported (golint)
    • grapeNet/Utils/syncJobs.go
    • Line 1: warning: package comment should be of the form "Package Utils ..." (golint)
    • Line 7: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 24: warning: exported type SyncJob should have comment or be unexported (golint)
    • Line 30: warning: exported method SyncJob.Append should have comment or be unexported (golint)
    • Line 48: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 64: warning: exported method SyncJob.AppendR should have comment or be unexported (golint)
    • Line 89: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 106: warning: exported method SyncJob.SliceJob should have comment or be unexported (golint)
    • Line 139: warning: exported method SyncJob.StartWait should have comment or be unexported (golint)
    • grapeNet/ConnManager/ConnMap.go
    • Line 7: warning: don't use MixedCaps in package name; grapeConn should be grapeconn (golint)
    • Line 21: warning: exported const ESERVER_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type QPackItem should have comment or be unexported (golint)
    • Line 34: warning: exported type ConnInterface should have comment or be unexported (golint)
    • Line 59: warning: exported type Conn should have comment or be unexported (golint)
    • Line 69: warning: exported method Conn.SetUserData should have comment or be unexported (golint)
    • Line 73: warning: exported method Conn.GetUserData should have comment or be unexported (golint)
    • Line 77: warning: exported method Conn.GetNetConn should have comment or be unexported (golint)
    • Line 81: warning: exported method Conn.RemoteAddr should have comment or be unexported (golint)
    • Line 85: warning: exported method Conn.GetSessionId should have comment or be unexported (golint)
    • Line 89: warning: exported method Conn.CType should have comment or be unexported (golint)
    • Line 93: warning: exported method Conn.Send should have comment or be unexported (golint)
    • Line 97: warning: exported method Conn.SendDirect should have comment or be unexported (golint)
    • Line 101: warning: exported method Conn.SendPakDirect should have comment or be unexported (golint)
    • Line 105: warning: exported method Conn.Close should have comment or be unexported (golint)
    • Line 109: warning: exported method Conn.InitData should have comment or be unexported (golint)
    • Line 117: warning: exported method Conn.SendPak should have comment or be unexported (golint)
    • Line 121: warning: exported method Conn.RemoveData should have comment or be unexported (golint)
    • Line 125: warning: exported type ConnManager should have comment or be unexported (golint)
    • Line 137: warning: exported function NewCM should have comment or be unexported (golint)
    • Line 203: warning: exported method ConnManager.Remove should have comment or be unexported (golint)
    • Line 214: warning: exported method ConnManager.Get should have comment or be unexported (golint)
    • Line 226: warning: exported method ConnManager.BroadcastMsg should have comment or be unexported (golint)
    • Line 240: warning: exported method ConnManager.Broadcast should have comment or be unexported (golint)
    • Line 254: warning: exported method ConnManager.BroadcastExcep should have comment or be unexported (golint)
    • Line 272: warning: exported method ConnManager.BroadcastMsgExcep should have comment or be unexported (golint)
    • Line 290: warning: exported method ConnManager.BroadcastType should have comment or be unexported (golint)
    • Line 306: warning: exported method ConnManager.BroadcastMsgType should have comment or be unexported (golint)
    • Line 322: warning: exported method ConnManager.BroadcastTypeExcep should have comment or be unexported (golint)
    • Line 342: warning: exported method ConnManager.BroadcastMsgTypeExcep should have comment or be unexported (golint)
    • grapeNet/Continer/StatHashMap.go
    • Line 10: warning: exported type SStatMap should have comment or be unexported (golint)
    • Line 15: warning: exported function NewStatMap should have comment or be unexported (golint)
    • Line 21: warning: exported method SStatMap.Len should have comment or be unexported (golint)
    • Line 28: warning: exported method SStatMap.Value should have comment or be unexported (golint)
    • Line 40: warning: exported method SStatMap.Incr should have comment or be unexported (golint)
    • Line 52: warning: exported method SStatMap.Sub should have comment or be unexported (golint)
    • Line 64: warning: exported method SStatMap.Range should have comment or be unexported (golint)
    • Line 75: warning: exported method SStatMap.Clear should have comment or be unexported (golint)
    • grapeNet/samples/WSNetV2/echo_client/main.go
    • Line 23: warning: exported function RecvEchoMsg should have comment or be unexported (golint)
    • Line 30: warning: exported function OnClose should have comment or be unexported (golint)
    • Line 36: warning: exported function RandStringRunes should have comment or be unexported (golint)
    • grapeNet/Logger/logger.go
    • Line 7: warning: don't use MixedCaps in package name; grapeLogger should be grapelogger (golint)
    • Line 21: warning: exported function GetCurrentDirectory should have comment or be unexported (golint)
    • Line 29: warning: exported function BuildLogger should have comment or be unexported (golint)
    • Line 72: warning: exported function BuildFromXML should have comment or be unexported (golint)
    • Line 88: warning: exported function INFO should have comment or be unexported (golint)
    • Line 92: warning: exported function INFOV should have comment or be unexported (golint)
    • Line 96: warning: exported function DEBUG should have comment or be unexported (golint)
    • Line 100: warning: exported function DEBUGV should have comment or be unexported (golint)
    • Line 104: warning: exported function CRT should have comment or be unexported (golint)
    • Line 108: warning: exported function CRTV should have comment or be unexported (golint)
    • Line 112: warning: exported function WARN should have comment or be unexported (golint)
    • Line 116: warning: exported function WARNV should have comment or be unexported (golint)
    • Line 120: warning: exported function ERROR should have comment or be unexported (golint)
    • Line 124: warning: exported function ERRORV should have comment or be unexported (golint)
    • Line 128: warning: exported function TRACE should have comment or be unexported (golint)
    • Line 132: warning: exported function TRACEV should have comment or be unexported (golint)
    • Line 136: warning: exported function FLUSH should have comment or be unexported (golint)
    • grapeNet/Etcd/etcd_watcher.go
    • Line 7: warning: don't use MixedCaps in package name; grapeEtcd should be grapeetcd (golint)
    • Line 19: warning: exported type EtcdHandler should have comment or be unexported (golint)
    • Line 21: warning: exported type EtcdWatcher should have comment or be unexported (golint)
    • Line 79: warning: exported method EtcdWatcher.Close should have comment or be unexported (golint)
    • Line 83: warning: exported function BindWatcherPrefix should have comment or be unexported (golint)
    • Line 136: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 157: warning: comment on exported function BindWatcher should be of the form "BindWatcher ..." (golint)
    • Line 167: warning: exported function StopWatcher should have comment or be unexported (golint)
    • grapeNet/Continer/limitArray.go
    • Line 5: warning: comment on exported type LimitAarray should be of the form "LimitAarray ..." (with optional leading article) (golint)
    • Line 13: warning: exported function NewLA should have comment or be unexported (golint)
    • Line 21: warning: exported method LimitAarray.Name should have comment or be unexported (golint)
    • Line 25: warning: exported method LimitAarray.Add should have comment or be unexported (golint)
    • Line 38: warning: exported method LimitAarray.Array should have comment or be unexported (golint)
    • Line 42: warning: exported method LimitAarray.Clear should have comment or be unexported (golint)
    • Line 49: warning: exported method LimitAarray.RevForeach should have comment or be unexported (golint)
    • Line 58: warning: exported method LimitAarray.Foreach should have comment or be unexported (golint)
    • Line 67: warning: exported method LimitAarray.Len should have comment or be unexported (golint)
    • grapeNet/Utils/ternary.go
    • Line 8: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 10: warning: comment on exported function If should be of the form "If ..." (golint)
    • Line 20: warning: comment on exported function Ifs should be of the form "Ifs ..." (golint)
    • Line 25: warning: exported function Ifn should have comment or be unexported (golint)
    • Line 29: warning: exported function Ifn64 should have comment or be unexported (golint)
    • Line 33: warning: exported function Ifun64 should have comment or be unexported (golint)
    • Line 37: warning: exported function Ifd should have comment or be unexported (golint)
    • Line 41: warning: exported function Ifn32 should have comment or be unexported (golint)
    • Line 45: warning: exported function Ifun32 should have comment or be unexported (golint)
    • grapeNet/FuncMap/FuncMap.go
    • Line 8: warning: don't use MixedCaps in package name; grapeFunc should be grapefunc (golint)
    • Line 17: warning: exported type MapHandler should have comment or be unexported (golint)
    • Line 19: warning: exported type FuncMap should have comment or be unexported (golint)
    • Line 23: warning: exported function NewMap should have comment or be unexported (golint)
    • Line 27: warning: exported method FuncMap.Bind should have comment or be unexported (golint)
    • Line 59: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 69: warning: comment on exported method FuncMap.CallR should be of the form "CallR ..." (golint)
    • Line 86: warning: comment on exported method FuncMap.Call should be of the form "Call ..." (golint)
    • Line 99: warning: comment on exported function FastBind should be of the form "FastBind ..." (golint)
    • Line 104: warning: comment on exported function FastCall should be of the form "FastCall ..." (golint)
    • Line 109: warning: exported function FastCallR should have comment or be unexported (golint)
    • grapeNet/Stream/bufferIO.go
    • Line 7: warning: don't use MixedCaps in package name; grapeStream should be grapestream (golint)
    • Line 19: warning: exported type BufferIO should have comment or be unexported (golint)
    • Line 26: warning: exported type CryptFn should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function NewPacker should be of the form "NewPacker ..." (golint)
    • Line 38: warning: exported function NewResize should have comment or be unexported (golint)
    • Line 46: warning: exported function BuildResize should have comment or be unexported (golint)
    • Line 53: warning: exported function BuildPacker should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method BufferIO.Len should be of the form "Len ..." (golint)
    • Line 67: warning: comment on exported method BufferIO.EndOf should be of the form "EndOf ..." (golint)
    • Line 72: warning: comment on exported method BufferIO.Available should be of the form "Available ..." (golint)
    • Line 81: warning: comment on exported method BufferIO.Bytes should be of the form "Bytes ..." (golint)
    • Line 86: warning: comment on exported method BufferIO.Resize should be of the form "Resize ..." (golint)
    • Line 104: warning: exported method BufferIO.Slice should have comment or be unexported (golint)
    • Line 116: warning: comment on exported method BufferIO.Shift should be of the form "Shift ..." (golint)
    • Line 129: warning: exported method BufferIO.Reset should have comment or be unexported (golint)
    • Line 135: warning: comment on exported method BufferIO.Skip should be of the form "Skip ..." (golint)
    • Line 145: warning: comment on exported method BufferIO.Seek should be of the form "Seek ..." (golint)
    • Line 158: warning: exported method BufferIO.WSeek should have comment or be unexported (golint)
    • Line 170: warning: comment on exported method BufferIO.ReadPos should be of the form "ReadPos ..." (golint)
    • Line 175: warning: comment on exported method BufferIO.WritePos should be of the form "WritePos ..." (golint)
    • Line 180: warning: comment on exported method BufferIO.PeekBytes should be of the form "PeekBytes ..." (golint)
    • Line 198: warning: exported method BufferIO.Peek16 should have comment or be unexported (golint)
    • Line 202: warning: exported method BufferIO.Peek32 should have comment or be unexported (golint)
    • Line 206: warning: exported method BufferIO.GetBytes should have comment or be unexported (golint)
    • Line 216: warning: exported method BufferIO.GetUint8 should have comment or be unexported (golint)
    • Line 220: warning: exported method BufferIO.GetInt8 should have comment or be unexported (golint)
    • Line 224: warning: exported method BufferIO.GetUint16 should have comment or be unexported (golint)
    • Line 228: warning: exported method BufferIO.GetInt16 should have comment or be unexported (golint)
    • Line 232: warning: exported method BufferIO.GetUint32 should have comment or be unexported (golint)
    • Line 236: warning: exported method BufferIO.GetInt32 should have comment or be unexported (golint)
    • Line 240: warning: exported method BufferIO.GetUint64 should have comment or be unexported (golint)
    • Line 244: warning: exported method BufferIO.GetInt64 should have comment or be unexported (golint)
    • Line 248: warning: exported method BufferIO.GetFloat32 should have comment or be unexported (golint)
    • Line 252: warning: exported method BufferIO.GetFloat64 should have comment or be unexported (golint)
    • Line 256: warning: exported method BufferIO.GetString should have comment or be unexported (golint)
    • Line 260: warning: exported method BufferIO.GetLine should have comment or be unexported (golint)
    • Line 275: warning: comment on exported method BufferIO.WriteAuto should be of the form "WriteAuto ..." (golint)
    • Line 304: warning: exported method BufferIO.WriteUInt8 should have comment or be unexported (golint)
    • Line 308: warning: exported method BufferIO.WriteInt8 should have comment or be unexported (golint)
    • Line 312: warning: exported method BufferIO.WriteUInt16 should have comment or be unexported (golint)
    • Line 316: warning: exported method BufferIO.WriteInt16 should have comment or be unexported (golint)
    • Line 320: warning: exported method BufferIO.WriteUInt32 should have comment or be unexported (golint)
    • Line 324: warning: exported method BufferIO.WriteInt32 should have comment or be unexported (golint)
    • Line 328: warning: exported method BufferIO.WriteUInt64 should have comment or be unexported (golint)
    • Line 332: warning: exported method BufferIO.WriteInt64 should have comment or be unexported (golint)
    • Line 336: warning: exported method BufferIO.WriteFloat32 should have comment or be unexported (golint)
    • Line 340: warning: exported method BufferIO.WriteFloat64 should have comment or be unexported (golint)
    • Line 344: warning: exported method BufferIO.WriteString should have comment or be unexported (golint)
    • Line 348: warning: exported method BufferIO.WriteLine should have comment or be unexported (golint)
    • Line 352: warning: comment on exported method BufferIO.ChangeAuto should be of the form "ChangeAuto ..." (golint)
    • Line 365: warning: exported method BufferIO.ChangeUInt8 should have comment or be unexported (golint)
    • Line 369: warning: exported method BufferIO.ChangeInt8 should have comment or be unexported (golint)
    • Line 373: warning: exported method BufferIO.ChangeUInt16 should have comment or be unexported (golint)
    • Line 377: warning: exported method BufferIO.ChangeInt16 should have comment or be unexported (golint)
    • Line 381: warning: exported method BufferIO.ChangeUInt32 should have comment or be unexported (golint)
    • Line 385: warning: exported method BufferIO.ChangeInt32 should have comment or be unexported (golint)
    • Line 389: warning: exported method BufferIO.ChangeUInt64 should have comment or be unexported (golint)
    • Line 393: warning: exported method BufferIO.ChangeInt64 should have comment or be unexported (golint)
    • Line 397: warning: exported method BufferIO.ChangeFloat32 should have comment or be unexported (golint)
    • Line 401: warning: exported method BufferIO.ChangeFloat64 should have comment or be unexported (golint)
    • Line 405: warning: exported method BufferIO.ChangeString should have comment or be unexported (golint)
    • Line 409: warning: comment on exported method BufferIO.Unpack should be of the form "Unpack ..." (golint)
    • Line 435: warning: comment on exported method BufferIO.UnpackLine should be of the form "UnpackLine ..." (golint)
    • Line 457: warning: comment on exported method BufferIO.Packer should be of the form "Packer ..." (golint)
    • Line 478: warning: exported function PackerOnce should have comment or be unexported (golint)
    • grapeNet/KcpNet/KcpConn.go
    • Line 1: warning: don't use MixedCaps in package name; kcpNet should be kcpnet (golint)
    • Line 22: warning: exported type KcpConn should have comment or be unexported (golint)
    • Line 50: warning: exported const RMStream should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported function EmptyConn should have comment or be unexported (golint)
    • Line 78: warning: exported function NewConn should have comment or be unexported (golint)
    • Line 93: warning: exported function NewDial should have comment or be unexported (golint)
    • Line 126: warning: comment on exported method KcpConn.SetUserData should be of the form "SetUserData ..." (golint)
    • Line 132: warning: exported method KcpConn.GetUserData should have comment or be unexported (golint)
    • Line 136: warning: exported method KcpConn.GetNetConn should have comment or be unexported (golint)
    • Line 140: warning: exported method KcpConn.RemoteAddr should have comment or be unexported (golint)
    • Line 394: warning: exported method KcpConn.Send should have comment or be unexported (golint)
    • Line 425: warning: exported method KcpConn.SendPak should have comment or be unexported (golint)
    • Line 443: warning: exported method KcpConn.SendDirect should have comment or be unexported (golint)
    • Line 471: warning: exported method KcpConn.SendPakDirect should have comment or be unexported (golint)
    • Line 489: warning: exported method KcpConn.CloseSocket should have comment or be unexported (golint)
    • Line 496: warning: exported method KcpConn.Close should have comment or be unexported (golint)
    • Line 512: warning: exported method KcpConn.RemoveData should have comment or be unexported (golint)
    • Line 521: warning: exported method KcpConn.InitData should have comment or be unexported (golint)
    • grapeNet/Continer/timeLimit.go
    • Line 1: warning: package comment should be of the form "Package continer ..." (golint)
    • Line 57: warning: exported type TimeGroup should have comment or be unexported (golint)
    • Line 71: warning: exported function NewTimeGroup should have comment or be unexported (golint)
    • Line 101: warning: exported method TimeGroup.Stop should have comment or be unexported (golint)
    • Line 101: warning: receiver name t should be consistent with previous receiver name c for TimeGroup (golint)
    • Line 108: warning: exported method TimeGroup.AddLimitMap should have comment or be unexported (golint)
    • Line 108: warning: receiver name t should be consistent with previous receiver name c for TimeGroup (golint)
    • Line 144: warning: exported method TimeGroup.ClearMemory should have comment or be unexported (golint)
    • Line 144: warning: receiver name t should be consistent with previous receiver name c for TimeGroup (golint)
    • Line 165: warning: exported method TimeGroup.AddCount should have comment or be unexported (golint)
    • Line 165: warning: receiver name t should be consistent with previous receiver name c for TimeGroup (golint)
    • grapeNet/Continer/formatters/bsonformatter.go
    • Line 13: warning: exported type BsonFormatter should have comment or be unexported (golint)
    • Line 15: warning: exported method BsonFormatter.To should have comment or be unexported (golint)
    • Line 48: warning: exported method BsonFormatter.From should have comment or be unexported (golint)
    • grapeNet/samples/WSNet/echo_client/main.go
    • Line 20: warning: exported function RecvEchoMsg should have comment or be unexported (golint)
    • Line 27: warning: exported function OnClose should have comment or be unexported (golint)
    • Line 33: warning: exported function RandStringRunes should have comment or be unexported (golint)
    • grapeNet/Utils/Daemon.go
    • Line 8: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 22: warning: exported type DaemonHandler should have comment or be unexported (golint)
    • Line 83: warning: exported function RunDaemon should have comment or be unexported (golint)
    • grapeNet/Etcd/etcd_formatters.go
    • Line 7: warning: don't use MixedCaps in package name; grapeEtcd should be grapeetcd (golint)
    • Line 16: warning: comment on exported type Formatter should be of the form "Formatter ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported type JsonFormatter should be of the form "JsonFormatter ..." (with optional leading article) (golint)
    • Line 30: warning: exported method JsonFormatter.Marshal should have comment or be unexported (golint)
    • Line 34: warning: exported method JsonFormatter.Unmarshal should have comment or be unexported (golint)
    • Line 38: warning: exported method JsonFormatter.ToString should have comment or be unexported (golint)
    • Line 42: warning: exported method JsonFormatter.FromString should have comment or be unexported (golint)
    • Line 46: warning: comment on exported type BsonFormatter should be of the form "BsonFormatter ..." (with optional leading article) (golint)
    • Line 51: warning: exported method BsonFormatter.Marshal should have comment or be unexported (golint)
    • Line 55: warning: exported method BsonFormatter.Unmarshal should have comment or be unexported (golint)
    • Line 59: warning: exported method BsonFormatter.ToString should have comment or be unexported (golint)
    • Line 63: warning: exported method BsonFormatter.FromString should have comment or be unexported (golint)
    • grapeNet/Utils/convert.go
    • Line 8: warning: don't use MixedCaps in package name; Utils should be utils (golint)
    • Line 26: warning: exported function MustString should have comment or be unexported (golint)
    • Line 114: warning: exported function MustBool should have comment or be unexported (golint)
    • Line 123: warning: exported function MustInt should have comment or be unexported (golint)
    • Line 132: warning: exported function MustInt64 should have comment or be unexported (golint)
    • Line 141: warning: exported function MustUInt64 should have comment or be unexported (golint)
    • Line 150: warning: exported function MustFloat64 should have comment or be unexported (golint)
    • grapeNet/Websocketv2/WSConn.go
    • Line 1: warning: don't use MixedCaps in package name; grapeWSNetv2 should be grapewsnetv2 (golint)
    • Line 29: warning: exported type WSConn should have comment or be unexported (golint)
    • Line 56: warning: exported const ReadWaitPing should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: comment on exported function NewWConn should be of the form "NewWConn ..." (golint)
    • Line 93: warning: exported function NewDial should have comment or be unexported (golint)
    • Line 135: warning: comment on exported method WSConn.SetUserData should be of the form "SetUserData ..." (golint)
    • Line 141: warning: exported method WSConn.GetUserData should have comment or be unexported (golint)
    • Line 145: warning: exported method WSConn.GetNetConn should have comment or be unexported (golint)
    • Line 151: warning: exported method WSConn.RemoteAddr should have comment or be unexported (golint)
    • Line 158: warning: exported method WSConn.GetConn should have comment or be unexported (golint)
    • Line 166: warning: exported method WSConn.SetReadTimeout should have comment or be unexported (golint)
    • Line 170: warning: exported method WSConn.SetWriteTimeout should have comment or be unexported (golint)
    • Line 450: warning: exported method WSConn.Send should have comment or be unexported (golint)
    • Line 467: warning: exported method WSConn.SendPak should have comment or be unexported (golint)
    • Line 486: warning: exported method WSConn.SendDirect should have comment or be unexported (golint)
    • Line 502: warning: exported method WSConn.SendPakDirect should have comment or be unexported (golint)
    • Line 520: warning: exported method WSConn.Close should have comment or be unexported (golint)
    • Line 537: warning: exported method WSConn.RemoveData should have comment or be unexported (golint)
    • Line 572: warning: exported method WSConn.InitData should have comment or be unexported (golint)
    • grapeNet/Stream/StringLine.go
    • Line 7: warning: don't use MixedCaps in package name; grapeStream should be grapestream (golint)
    • Line 19: warning: exported type StrLine should have comment or be unexported (golint)
    • Line 29: warning: exported function NewSL should have comment or be unexported (golint)
    • Line 41: warning: exported function NewSLEmpty should have comment or be unexported (golint)
    • Line 50: warning: exported method StrLine.Source should have comment or be unexported (golint)
    • Line 54: warning: exported method StrLine.Parser should have comment or be unexported (golint)
    • Line 58: warning: exported method StrLine.Pack should have comment or be unexported (golint)
    • Line 63: warning: exported method StrLine.Command should have comment or be unexported (golint)
    • Line 67: warning: comment on exported method StrLine.Get should be of the form "Get ..." (golint)
    • Line 76: warning: exported method StrLine.GetInt should have comment or be unexported (golint)
    • Line 81: warning: exported method StrLine.GetNext should have comment or be unexported (golint)
    • Line 91: warning: exported method StrLine.GetNextInt should have comment or be unexported (golint)
    • Line 96: warning: comment on exported method StrLine.CreateCmd should be of the form "CreateCmd ..." (golint)
    • Line 102: warning: exported method StrLine.Append should have comment or be unexported (golint)
    • Line 106: warning: exported method StrLine.AppendA62 should have comment or be unexported (golint)
    • grapeNet/Script/LuaCall.go
    • Line 1: warning: package comment should be of the form "Package grapeLua ..." (golint)
    • Line 8: warning: don't use MixedCaps in package name; grapeLua should be grapelua (golint)
    • Line 18: warning: comment on exported method LuaVM.SetGlobal should be of the form "SetGlobal ..." (golint)
    • Line 33: warning: comment on exported method LuaVM.CallGlobal should be of the form "CallGlobal ..." (golint)
    • Line 46: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 65: warning: exported method LuaVM.CallGlobalRet should have comment or be unexported (golint)
    • Line 76: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words