Preparing report...

Report for github.com/liguoqinjim/go-labs

A+    Excellent!    Found 363 issues across 855 files

Tweet

gofmt95%

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!


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.


golint62%

Golint is a linter for Go source code.

    • go-labs/lab169/main.go
    • Line 8: warning: exported type Part1 should have comment or be unexported (golint)
    • Line 16: warning: exported type Part2 should have comment or be unexported (golint)
    • go-labs/lab225/lab002/controllers/user/user_controller.go
    • Line 21: warning: comment on exported function List should be of the form "List ..." (golint)
    • Line 36: warning: comment on exported function Online should be of the form "Online ..." (golint)
    • Line 53: warning: comment on exported function SendMessage should be of the form "SendMessage ..." (golint)
    • Line 87: warning: comment on exported function SendMessageAll should be of the form "SendMessageAll ..." (golint)
    • go-labs/lab032/lab003/lib_test.go
    • Line 9: warning: don't use underscores in Go names; struct field add_1 should be add1 (golint)
    • Line 10: warning: don't use underscores in Go names; struct field add_2 should be add2 (golint)
    • Line 33: warning: don't use underscores in Go names; var test_data should be testData (golint)
    • go-labs/lab051/lab004/mynodes/IsDead.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type IsDead should have comment or be unexported (golint)
    • Line 13: warning: exported method IsDead.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 17: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab059/lab002/main.go
    • Line 22: warning: exported function IntranetIP should have comment or be unexported (golint)
    • Line 82: warning: exported function IsIntranet should have comment or be unexported (golint)
    • go-labs/lab051/lab008/mynode/Move.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type Move should have comment or be unexported (golint)
    • Line 13: warning: exported method Move.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab040/lab006/server/main.go
    • Line 11: warning: exported const Addr should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type RpcServiceImpl should have comment or be unexported (golint)
    • Line 17: warning: exported method RpcServiceImpl.FunCall should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab225/lab001/servers/websocket/client_manager.go
    • Line 20: warning: comment on exported type ClientManager should be of the form "ClientManager ..." (with optional leading article) (golint)
    • Line 32: warning: exported function NewClientManager should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function GetUserKey should be of the form "GetUserKey ..." (golint)
    • Line 54: warning: exported method ClientManager.InClient should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method ClientManager.GetClients should be of the form "GetClients ..." (golint)
    • Line 77: warning: comment on exported method ClientManager.ClientsRange should be of the form "ClientsRange ..." (golint)
    • Line 92: warning: comment on exported method ClientManager.GetClientsLen should be of the form "GetClientsLen ..." (golint)
    • Line 100: warning: comment on exported method ClientManager.AddClients should be of the form "AddClients ..." (golint)
    • Line 108: warning: comment on exported method ClientManager.DelClients should be of the form "DelClients ..." (golint)
    • Line 118: warning: comment on exported method ClientManager.GetUserClient should be of the form "GetUserClient ..." (golint)
    • Line 131: warning: comment on exported method ClientManager.GetUsersLen should be of the form "GetUsersLen ..." (golint)
    • Line 138: warning: comment on exported method ClientManager.AddUsers should be of the form "AddUsers ..." (golint)
    • Line 146: warning: comment on exported method ClientManager.DelUsers should be of the form "DelUsers ..." (golint)
    • Line 165: warning: comment on exported method ClientManager.GetUserKeys should be of the form "GetUserKeys ..." (golint)
    • Line 178: warning: comment on exported method ClientManager.GetUserList should be of the form "GetUserList ..." (golint)
    • Line 195: warning: comment on exported method ClientManager.GetUserClients should be of the form "GetUserClients ..." (golint)
    • Line 217: warning: comment on exported method ClientManager.EventRegister should be of the form "EventRegister ..." (golint)
    • Line 226: warning: comment on exported method ClientManager.EventLogin should be of the form "EventLogin ..." (golint)
    • Line 241: warning: comment on exported method ClientManager.EventUnregister should be of the form "EventUnregister ..." (golint)
    • Line 297: warning: comment on exported function GetManagerInfo should be of the form "GetManagerInfo ..." (golint)
    • Line 326: warning: comment on exported function GetUserClient should be of the form "GetUserClient ..." (golint)
    • Line 333: warning: comment on exported function ClearTimeoutConnections should be of the form "ClearTimeoutConnections ..." (golint)
    • Line 347: warning: comment on exported function GetUserList should be of the form "GetUserList ..." (golint)
    • Line 356: warning: comment on exported function AllSendMessages should be of the form "AllSendMessages ..." (golint)
    • go-labs/lab225/lab002/servers/websocket/user_srv.go
    • Line 19: warning: comment on exported function UserList should be of the form "UserList ..." (golint)
    • Line 45: warning: comment on exported function CheckUserOnline should be of the form "CheckUserOnline ..." (golint)
    • Line 83: warning: comment on exported function SendUserMessage should be of the form "SendUserMessage ..." (golint)
    • Line 96: warning: comment on exported function SendUserMessageLocal should be of the form "SendUserMessageLocal ..." (golint)
    • Line 113: warning: comment on exported function SendUserMessageAll should be of the form "SendUserMessageAll ..." (golint)
    • go-labs/lab058/lab009/consumer2/main.go
    • Line 16: warning: exported const INDEX_NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type ActionLog should have comment or be unexported (golint)
    • Line 56: warning: exported var ELKClient should have comment or be unexported (golint)
    • Line 93: warning: exported function ConnectToElastic should have comment or be unexported (golint)
    • Line 138: warning: exported function AddDocument should have comment or be unexported (golint)
    • Line 149: warning: exported function MsgHandler should have comment or be unexported (golint)
    • go-labs/lab128/lab010/main.go
    • Line 77: warning: exported type Company should have comment or be unexported (golint)
    • Line 83: warning: exported method Company.TableName should have comment or be unexported (golint)
    • Line 87: warning: exported type User should have comment or be unexported (golint)
    • Line 95: warning: exported method User.TableName should have comment or be unexported (golint)
    • Line 125: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab208/lab001/main.go
    • Line 81: warning: exported type CompanyInfomation should have comment or be unexported (golint)
    • Line 89: warning: exported type YamlSetting should have comment or be unexported (golint)
    • go-labs/lab051/lab004/mynodes/IsBattleOver.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type IsBattleOver should have comment or be unexported (golint)
    • Line 13: warning: exported method IsBattleOver.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab051/lab008/mynode/GetEnemy.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type GetEnemy should have comment or be unexported (golint)
    • Line 13: warning: exported method GetEnemy.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab225/lab002/servers/websocket/client.go
    • Line 36: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 61: warning: comment on exported method Client.GetKey should be of the form "GetKey ..." (golint)
    • Line 123: warning: comment on exported method Client.SendMsg should be of the form "SendMsg ..." (golint)
    • Line 143: warning: comment on exported method Client.Login should be of the form "Login ..." (golint)
    • Line 152: warning: comment on exported method Client.Heartbeat should be of the form "Heartbeat ..." (golint)
    • Line 159: warning: comment on exported method Client.IsHeartbeatTimeout should be of the form "IsHeartbeatTimeout ..." (golint)
    • Line 168: warning: comment on exported method Client.IsLogin should be of the form "IsLogin ..." (golint)
    • go-labs/lab031/lab007/main.go
    • Line 9: warning: exported type Student should have comment or be unexported (golint)
    • Line 16: warning: exported function NewStudent should have comment or be unexported (golint)
    • Line 26: warning: exported function SimAddMemory should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; var Student_map should be StudentMap (golint)
    • Line 35: warning: exported var Student_map should have comment or be unexported (golint)
    • Line 46: warning: don't use underscores in Go names; var first_student_id should be firstStudentID (golint)
    • go-labs/lab039/lab001/main.go
    • Line 5: warning: exported type TransLog should have comment or be unexported (golint)
    • Line 10: warning: exported type Database should have comment or be unexported (golint)
    • Line 15: warning: exported type PlayerItem should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDatabase should have comment or be unexported (golint)
    • Line 27: warning: exported method Database.Transaction should have comment or be unexported (golint)
    • Line 45: warning: exported method Database.LookupPlayerItem should have comment or be unexported (golint)
    • Line 49: warning: exported method Database.InsertPlayerItem should have comment or be unexported (golint)
    • Line 59: warning: exported method Database.DeletePlayerItem should have comment or be unexported (golint)
    • Line 67: warning: exported method Database.UpdatePlayerItem should have comment or be unexported (golint)
    • Line 75: warning: exported type TransType should have comment or be unexported (golint)
    • Line 78: warning: exported const INSERT should have comment (or a comment on this block) or be unexported (golint)
    • Line 83: warning: exported type PlayerItemTransLog should have comment or be unexported (golint)
    • Line 89: warning: exported method PlayerItemTransLog.Commit should have comment or be unexported (golint)
    • Line 109: warning: exported method PlayerItemTransLog.Rollback should have comment or be unexported (golint)
    • go-labs/lab039/lab002/main.go
    • Line 5: warning: exported type TransLog should have comment or be unexported (golint)
    • Line 10: warning: exported type Database should have comment or be unexported (golint)
    • Line 15: warning: exported type PlayerItem should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDatabase should have comment or be unexported (golint)
    • Line 27: warning: exported method Database.Transaction should have comment or be unexported (golint)
    • Line 45: warning: exported method Database.LookupPlayerItem should have comment or be unexported (golint)
    • Line 49: warning: exported method Database.InsertPlayerItem should have comment or be unexported (golint)
    • Line 56: warning: exported method Database.DeletePlayerItem should have comment or be unexported (golint)
    • Line 64: warning: exported method Database.UpdatePlayerItem should have comment or be unexported (golint)
    • Line 72: warning: exported type TransType should have comment or be unexported (golint)
    • Line 75: warning: exported const INSERT should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported type PlayerItemTransLog should have comment or be unexported (golint)
    • Line 86: warning: exported method PlayerItemTransLog.Commit should have comment or be unexported (golint)
    • Line 106: warning: exported method PlayerItemTransLog.Rollback should have comment or be unexported (golint)
    • go-labs/lab225/lab001/models/user_model.go
    • Line 19: warning: comment on exported type UserOnline should be of the form "UserOnline ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported function UserLogin should be of the form "UserLogin ..." (golint)
    • Line 54: warning: comment on exported method UserOnline.Heartbeat should be of the form "Heartbeat ..." (golint)
    • Line 63: warning: comment on exported method UserOnline.LogOut should be of the form "LogOut ..." (golint)
    • Line 75: warning: comment on exported method UserOnline.IsOnline should be of the form "IsOnline ..." (golint)
    • Line 99: warning: comment on exported method UserOnline.UserIsLocal should be of the form "UserIsLocal ..." (golint)
    • go-labs/lab030/lab003/server/protocol/protocol.go
    • Line 1: warning: package comment should be of the form "Package protocol ..." (golint)
    • Line 11: warning: exported const ConstHeader should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: comment on exported function Enpack should be of the form "Enpack ..." (golint)
    • Line 21: warning: comment on exported function Depack should be of the form "Depack ..." (golint)
    • Line 49: warning: comment on exported function IntToBytes should be of the form "IntToBytes ..." (golint)
    • Line 58: warning: comment on exported function BytesToInt should be of the form "BytesToInt ..." (golint)
    • go-labs/lab129/lab001/main.go
    • Line 8: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 13: warning: exported method UserInfo.GetKey should have comment or be unexported (golint)
    • go-labs/lab129/lab002/main.go
    • Line 13: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 18: warning: exported method UserInfo.GetKey should have comment or be unexported (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab234/lab004/client/main.go
    • Line 173: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 190: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 197: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab150/lab004/lab002/web/handler.go
    • Line 3: warning: comment on exported type Pet should be of the form "Pet ..." (with optional leading article) (golint)
    • Line 20: warning: exported type Pet2 should have comment or be unexported (golint)
    • Line 24: warning: exported type APIError should have comment or be unexported (golint)
    • go-labs/lab051/lab007/fight/fight.go
    • Line 7: warning: exported type Army should have comment or be unexported (golint)
    • Line 17: warning: exported function NewArmy should have comment or be unexported (golint)
    • Line 21: warning: exported method Army.Move should have comment or be unexported (golint)
    • Line 29: warning: exported method Army.Attack should have comment or be unexported (golint)
    • Line 40: warning: exported method Army.SetEnemy should have comment or be unexported (golint)
    • Line 44: warning: exported method Army.IsDead should have comment or be unexported (golint)
    • Line 47: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 52: warning: exported method Army.HasEnemy should have comment or be unexported (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 60: warning: exported method Army.IsEnemyInRange should have comment or be unexported (golint)
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab128/lab006/main.go
    • Line 65: warning: exported type HeatMap should have comment or be unexported (golint)
    • Line 77: warning: exported method HeatMap.TableName should have comment or be unexported (golint)
    • Line 93: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab225/lab002/models/msg_model.go
    • Line 13: warning: exported const MessageTypeText should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 28: warning: exported function NewTestMsg should have comment or be unexported (golint)
    • Line 46: warning: comment on exported function GetMsgData should be of the form "GetMsgData ..." (golint)
    • Line 51: warning: comment on exported function GetTextMsgData should be of the form "GetTextMsgData ..." (golint)
    • Line 57: warning: comment on exported function GetTextMsgDataEnter should be of the form "GetTextMsgDataEnter ..." (golint)
    • Line 63: warning: comment on exported function GetTextMsgDataExit should be of the form "GetTextMsgDataExit ..." (golint)
    • go-labs/lab051/lab007/mynode/HasEnemy.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 9: warning: exported type HasEnemy should have comment or be unexported (golint)
    • Line 13: warning: exported method HasEnemy.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 16: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab051/lab008/mynode/Attack.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 11: warning: exported type Attack should have comment or be unexported (golint)
    • Line 15: warning: exported method Attack.OnTick should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab150/lab006/models/token.go
    • Line 5: warning: comment on exported type OauthToken should be of the form "OauthToken ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported method OauthToken.OauthTokenCreate should be of the form "OauthTokenCreate ..." (golint)
    • Line 22: warning: exported type Token should have comment or be unexported (golint)
    • Line 26: warning: comment on exported function GetOauthTokenByToken should be of the form "GetOauthTokenByToken ..." (golint)
    • go-labs/lab225/lab001/servers/websocket/client.go
    • Line 36: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 48: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 61: warning: comment on exported method Client.GetKey should be of the form "GetKey ..." (golint)
    • Line 124: warning: comment on exported method Client.SendMsg should be of the form "SendMsg ..." (golint)
    • Line 146: warning: comment on exported method Client.Login should be of the form "Login ..." (golint)
    • Line 155: warning: comment on exported method Client.Heartbeat should be of the form "Heartbeat ..." (golint)
    • Line 162: warning: comment on exported method Client.IsHeartbeatTimeout should be of the form "IsHeartbeatTimeout ..." (golint)
    • Line 171: warning: comment on exported method Client.IsLogin should be of the form "IsLogin ..." (golint)
    • go-labs/lab164/lab005/logger/logger.go
    • Line 15: warning: exported var Log should have comment or be unexported (golint)
    • Line 86: warning: exported function Debug should have comment or be unexported (golint)
    • Line 90: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 94: warning: exported function Debugw should have comment or be unexported (golint)
    • Line 98: warning: exported function Info should have comment or be unexported (golint)
    • Line 102: warning: exported function Infof should have comment or be unexported (golint)
    • Line 106: warning: exported function Infow should have comment or be unexported (golint)
    • Line 110: warning: exported function Warn should have comment or be unexported (golint)
    • Line 114: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 118: warning: exported function WarnW should have comment or be unexported (golint)
    • Line 122: warning: exported function Error should have comment or be unexported (golint)
    • Line 126: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 130: warning: exported function Errorw should have comment or be unexported (golint)
    • Line 134: warning: exported function DPanic should have comment or be unexported (golint)
    • Line 138: warning: exported function DPanicf should have comment or be unexported (golint)
    • Line 142: warning: exported function DPanicw should have comment or be unexported (golint)
    • Line 146: warning: exported function Panic should have comment or be unexported (golint)
    • Line 150: warning: exported function Panicf should have comment or be unexported (golint)
    • Line 154: warning: exported function Panicw should have comment or be unexported (golint)
    • Line 158: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 162: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 166: warning: exported function Fatalw should have comment or be unexported (golint)
    • Line 170: warning: exported type Logger should have comment or be unexported (golint)
    • Line 174: warning: exported method Logger.Print should have comment or be unexported (golint)
    • Line 178: warning: exported method Logger.Println should have comment or be unexported (golint)
    • Line 184: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 187: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 190: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 194: warning: comment on exported method Logger.Get should be of the form "Get ..." (golint)
    • go-labs/lab051/lab003/mynodes/MyLog.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type MyLog should have comment or be unexported (golint)
    • Line 13: warning: exported method MyLog.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab128/lab011/main.go
    • Line 62: warning: exported type Block should have comment or be unexported (golint)
    • Line 71: warning: exported method Block.TableName should have comment or be unexported (golint)
    • Line 75: warning: exported type User should have comment or be unexported (golint)
    • Line 81: warning: exported method User.TableName should have comment or be unexported (golint)
    • Line 111: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab161/lab002/main.go
    • Line 18: warning: don't use underscores in Go names; var data_base64 should be dataBase64 (golint)
    • Line 21: warning: don't use underscores in Go names; var data_hex should be dataHex (golint)
    • go-labs/lab051/lab008/mynode/CalDamage.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 11: warning: exported type CalDamage should have comment or be unexported (golint)
    • Line 15: warning: exported method CalDamage.OnTick should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab088/lab001/main.go
    • Line 8: warning: exported type Point should have comment or be unexported (golint)
    • Line 12: warning: exported type Segment should have comment or be unexported (golint)
    • Line 16: warning: exported type Polygon should have comment or be unexported (golint)
    • Line 20: warning: exported function Inside should have comment or be unexported (golint)
    • Line 29: warning: exported function RayIntersectsSegment should have comment or be unexported (golint)
    • go-labs/lab075/lab003/main.go
    • Line 11: warning: exported type Army should have comment or be unexported (golint)
    • Line 31: warning: exported method Army.Move should have comment or be unexported (golint)
    • Line 49: warning: exported method Army.Stop should have comment or be unexported (golint)
    • go-labs/lab225/lab002/servers/websocket/init.go
    • Line 26: warning: exported function GetAppIds should have comment or be unexported (golint)
    • Line 30: warning: exported function IsLocal should have comment or be unexported (golint)
    • Line 38: warning: exported function InAppIds should have comment or be unexported (golint)
    • Line 50: warning: comment on exported function StartWebSocket should be of the form "StartWebSocket ..." (golint)
    • go-labs/lab032/lab003/lib.go
    • Line 3: warning: exported function Add should have comment or be unexported (golint)
    • Line 8: warning: exported type ForTest should have comment or be unexported (golint)
    • Line 12: warning: exported method ForTest.Loops should have comment or be unexported (golint)
    • Line 12: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab075/lab002/main.go
    • Line 12: warning: exported type Army should have comment or be unexported (golint)
    • Line 18: warning: exported method Army.Move should have comment or be unexported (golint)
    • Line 23: warning: exported method Army.Scout should have comment or be unexported (golint)
    • go-labs/lab051/lab008/mynode/IsDead.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 10: warning: exported type IsDead should have comment or be unexported (golint)
    • Line 14: warning: exported method IsDead.OnTick should have comment or be unexported (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab128/lab008/main.go
    • Line 16: warning: exported type DBConfig should have comment or be unexported (golint)
    • Line 36: warning: exported type User should have comment or be unexported (golint)
    • Line 41: warning: exported method User.TableName should have comment or be unexported (golint)
    • Line 45: warning: exported type Bill should have comment or be unexported (golint)
    • Line 50: warning: exported method Bill.TableName should have comment or be unexported (golint)
    • go-labs/lab225/lab002/lib/cache/server_cache.go
    • Line 31: warning: comment on exported function SetServerInfo should be of the form "SetServerInfo ..." (golint)
    • Line 55: warning: comment on exported function DelServerInfo should be of the form "DelServerInfo ..." (golint)
    • Line 76: warning: exported function GetServerAll should have comment or be unexported (golint)
    • go-labs/lab064/lab002/main.go
    • Line 89: warning: don't use underscores in Go names; var official_game should be officialGame (golint)
    • Line 128: warning: exported type Game should have comment or be unexported (golint)
    • Line 138: warning: exported type Player should have comment or be unexported (golint)
    • Line 145: warning: exported function NewPlayer should have comment or be unexported (golint)
    • Line 168: warning: exported type Conf should have comment or be unexported (golint)
    • go-labs/lab119/lab002/main.go
    • Line 11: warning: exported function GB2312ToUTF8 should have comment or be unexported (golint)
    • Line 21: warning: exported function UTF8ToGB2312 should have comment or be unexported (golint)
    • go-labs/lab119/lab001/main.go
    • Line 11: warning: exported function GBKToUTF8 should have comment or be unexported (golint)
    • Line 21: warning: exported function UTF8ToGBK should have comment or be unexported (golint)
    • go-labs/lab225/lab001/models/response_model.go
    • Line 12: warning: comment on exported type Head should be of the form "Head ..." (with optional leading article) (golint)
    • Line 19: warning: exported type Response should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type PushMsg should be of the form "PushMsg ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported function NewResponseHead should be of the form "NewResponseHead ..." (golint)
    • Line 47: warning: exported function NewResponse should have comment or be unexported (golint)
    • go-labs/lab225/lab001/lib/cache/server_cache.go
    • Line 31: warning: comment on exported function SetServerInfo should be of the form "SetServerInfo ..." (golint)
    • Line 55: warning: comment on exported function DelServerInfo should be of the form "DelServerInfo ..." (golint)
    • Line 76: warning: exported function GetServerAll should have comment or be unexported (golint)
    • go-labs/lab234/lab002/client/main.go
    • Line 173: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 190: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 197: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab234/lab003/server/main.go
    • Line 14: warning: exported var DefaultQueue should have comment or be unexported (golint)
    • Line 84: warning: comment on exported function Test001 should be of the form "Test001 ..." (golint)
    • Line 91: warning: comment on exported function Test002 should be of the form "Test002 ..." (golint)
    • Line 99: warning: comment on exported function Test003 should be of the form "Test003 ..." (golint)
    • go-labs/lab030/lab004/protocol/protocol.go
    • Line 11: warning: exported const HEADER_LENGTH should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported function Enpack should have comment or be unexported (golint)
    • Line 20: warning: exported function Depack should have comment or be unexported (golint)
    • Line 34: warning: exported function IntToBytes should have comment or be unexported (golint)
    • Line 41: warning: exported function BytesToInt should have comment or be unexported (golint)
    • go-labs/lab040/lab003/server/main.go
    • Line 14: warning: exported type Args should have comment or be unexported (golint)
    • Line 18: warning: exported type MyMethod should have comment or be unexported (golint)
    • Line 20: warning: exported method MyMethod.Mult should have comment or be unexported (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: exported type DivResult should have comment or be unexported (golint)
    • Line 33: warning: exported method MyMethod.Div should have comment or be unexported (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab074/lab001/main.go
    • Line 25: warning: exported type AesEncrypt should have comment or be unexported (golint)
    • Line 28: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: comment on exported method AesEncrypt.Encrypt should be of the form "Encrypt ..." (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 61: warning: comment on exported method AesEncrypt.Decrypt should be of the form "Decrypt ..." (golint)
    • Line 62: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab051/lab004/mynodes/HasEnemyInRange.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type HasEnemyInRange should have comment or be unexported (golint)
    • Line 13: warning: exported method HasEnemyInRange.GetEnemiesFromBlackboard should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 24: warning: exported method HasEnemyInRange.OnTick should have comment or be unexported (golint)
    • Line 24: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab051/lab004/mynodes/IsAlive.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type IsAlive should have comment or be unexported (golint)
    • Line 13: warning: exported method IsAlive.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 17: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab074/lab003/main.go
    • Line 28: warning: exported function Encrypt should have comment or be unexported (golint)
    • Line 44: warning: exported function PKCS7Padding should have comment or be unexported (golint)
    • Line 50: warning: exported function Decrypt should have comment or be unexported (golint)
    • Line 63: warning: exported function PKCS7UnPadding should have comment or be unexported (golint)
    • go-labs/lab051/lab007/util/consts.go
    • Line 4: warning: exported const SIDE_LEFT should have comment (or a comment on this block) or be unexported (golint)
    • Line 5: warning: don't use underscores in Go names; const SIDE_RIGHt should be SIDERIGHt (golint)
    • go-labs/lab185/lab001/main.go
    • Line 40: warning: exported type MyEventHandler should have comment or be unexported (golint)
    • Line 44: warning: exported method MyEventHandler.OnRow should have comment or be unexported (golint)
    • Line 68: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab225/lab001/servers/websocket/user_srv.go
    • Line 20: warning: comment on exported function UserList should be of the form "UserList ..." (golint)
    • Line 45: warning: comment on exported function CheckUserOnline should be of the form "CheckUserOnline ..." (golint)
    • Line 83: warning: comment on exported function SendUserMessage should be of the form "SendUserMessage ..." (golint)
    • Line 97: warning: comment on exported function SendUserMessageLocal should be of the form "SendUserMessageLocal ..." (golint)
    • Line 114: warning: comment on exported function SendUserMessageAll should be of the form "SendUserMessageAll ..." (golint)
    • go-labs/lab128/lab002/main.go
    • Line 92: warning: exported type User should have comment or be unexported (golint)
    • Line 102: warning: exported type Student should have comment or be unexported (golint)
    • Line 109: warning: exported type Class should have comment or be unexported (golint)
    • Line 114: warning: exported method Class.TableName should have comment or be unexported (golint)
    • Line 118: warning: exported type Temp should have comment or be unexported (golint)
    • Line 123: warning: exported type User2 should have comment or be unexported (golint)
    • Line 143: warning: exported type Email should have comment or be unexported (golint)
    • Line 150: warning: exported type Address should have comment or be unexported (golint)
    • Line 157: warning: exported type Language should have comment or be unexported (golint)
    • Line 163: warning: exported type CreditCard should have comment or be unexported (golint)
    • Line 181: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab009/lab004/main.go
    • Line 107: warning: comment on exported function CreateArmyGroup should be of the form "CreateArmyGroup ..." (golint)
    • Line 132: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab220/lab004/main.go
    • Line 25: warning: comment on exported function SetRowValue should be of the form "SetRowValue ..." (golint)
    • Line 56: warning: comment on exported function GetNextColumn should be of the form "GetNextColumn ..." (golint)
    • Line 70: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab225/lab002/models/user_model.go
    • Line 19: warning: comment on exported type UserOnline should be of the form "UserOnline ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported function UserLogin should be of the form "UserLogin ..." (golint)
    • Line 53: warning: comment on exported method UserOnline.Heartbeat should be of the form "Heartbeat ..." (golint)
    • Line 61: warning: comment on exported method UserOnline.LogOut should be of the form "LogOut ..." (golint)
    • Line 72: warning: comment on exported method UserOnline.IsOnline should be of the form "IsOnline ..." (golint)
    • Line 96: warning: comment on exported method UserOnline.UserIsLocal should be of the form "UserIsLocal ..." (golint)
    • go-labs/lab036/lab004/main.go
    • Line 27: warning: exported function MyLog should have comment or be unexported (golint)
    • Line 31: warning: exported function Test1 should have comment or be unexported (golint)
    • Line 35: warning: exported function Test2 should have comment or be unexported (golint)
    • go-labs/lab051/lab008/mynode/HasEnemy.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 10: warning: exported type HasEnemy should have comment or be unexported (golint)
    • Line 14: warning: exported method HasEnemy.OnTick should have comment or be unexported (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab088/lab002/lib.go
    • Line 3: warning: exported type Point should have comment or be unexported (golint)
    • Line 7: warning: exported type Line should have comment or be unexported (golint)
    • Line 12: warning: exported function NewLine should have comment or be unexported (golint)
    • Line 16: warning: comment on exported method Line.CalKB should be of the form "CalKB ..." (golint)
    • Line 22: warning: comment on exported method Line.CalK should be of the form "CalK ..." (golint)
    • Line 29: warning: comment on exported method Line.CalB should be of the form "CalB ..." (golint)
    • Line 36: warning: comment on exported method Line.CalY should be of the form "CalY ..." (golint)
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 46: warning: exported const POINT_ABOVE should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: comment on exported method Line.CalPointPos should be of the form "CalPointPos ..." (golint)
    • go-labs/lab013/main.go
    • Line 8: warning: exported type S should have comment or be unexported (golint)
    • Line 12: warning: exported type S2 should have comment or be unexported (golint)
    • go-labs/lab034/lib.go
    • Line 5: warning: exported function StringSliceReflectEqual should have comment or be unexported (golint)
    • Line 9: warning: exported function StringSliceEqual should have comment or be unexported (golint)
    • Line 27: warning: exported function StringSliceEqualBCE should have comment or be unexported (golint)
    • go-labs/lab040/lab005/lib/lib.go
    • Line 16: warning: exported const RPCPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type GRPCCalServer should have comment or be unexported (golint)
    • Line 24: warning: exported method GRPCCalServer.Mult should have comment or be unexported (golint)
    • Line 28: warning: exported method GRPCCalServer.Div should have comment or be unexported (golint)
    • Line 42: warning: exported function NewGRPCServer should have comment or be unexported (golint)
    • Line 50: warning: exported var GRPCCalClient should have comment or be unexported (golint)
    • Line 52: warning: exported function NewGRPCClient should have comment or be unexported (golint)
    • Line 61: warning: comment on exported type MyMethod should be of the form "MyMethod ..." (with optional leading article) (golint)
    • Line 64: warning: exported type RArgs should have comment or be unexported (golint)
    • Line 68: warning: exported type RDivResult should have comment or be unexported (golint)
    • Line 73: warning: exported method MyMethod.Mult should have comment or be unexported (golint)
    • Line 82: warning: exported method MyMethod.Div should have comment or be unexported (golint)
    • Line 97: warning: exported function NewRPCServer should have comment or be unexported (golint)
    • Line 105: warning: exported var RPCCalClient should have comment or be unexported (golint)
    • Line 107: warning: exported function NewRPCClient should have comment or be unexported (golint)
    • go-labs/lab225/lab002/models/response_model.go
    • Line 12: warning: comment on exported type Head should be of the form "Head ..." (with optional leading article) (golint)
    • Line 19: warning: exported type Response should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type PushMsg should be of the form "PushMsg ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported function NewResponseHead should be of the form "NewResponseHead ..." (golint)
    • Line 47: warning: exported function NewResponse should have comment or be unexported (golint)
    • go-labs/lab225/lab002/models/websocket.go
    • Line 10: warning: comment on exported type Request should be of the form "Request ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported type Login should be of the form "Login ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported type HeartBeat should be of the form "HeartBeat ..." (with optional leading article) (golint)
    • go-labs/lab155/lab001/lib.go
    • Line 1: warning: package comment should be of the form "Package lab001 ..." (golint)
    • Line 8: warning: comment on exported const TEST_MODE should be of the form "TEST_MODE ..." (golint)
    • Line 11: warning: comment on exported type Student should be of the form "Student ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported method Student.Homework should be of the form "Homework ..." (golint)
    • Line 26: warning: comment on exported function Hello should be of the form "Hello ..." (golint)
    • Line 36: warning: comment on exported function Hi should be of the form "Hi ..." (golint)
    • Line 41: warning: comment on exported function Bonjour should be of the form "Bonjour ..." (golint)
    • go-labs/lab225/lab001/servers/websocket/acc_controller.go
    • Line 20: warning: comment on exported function PingController should be of the form "PingController ..." (golint)
    • Line 30: warning: comment on exported function LoginController should be of the form "LoginController ..." (golint)
    • Line 93: warning: comment on exported function HeartbeatController should be of the form "HeartbeatController ..." (golint)
    • Line 123: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab051/lab006/mynode/IsMax.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 7: warning: should not use dot imports (golint)
    • Line 10: warning: exported type IsMax should have comment or be unexported (golint)
    • Line 15: warning: exported method IsMax.Initialize should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: exported method IsMax.OnOpen should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 23: warning: exported method IsMax.OnTick should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 28: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab242/lib.go
    • Line 9: warning: exported function IsIpv4Net should have comment or be unexported (golint)
    • Line 17: warning: exported function IsIpv4Regex should have comment or be unexported (golint)
    • Line 23: warning: exported const IPv4len should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function IsIpv4 should have comment or be unexported (golint)
    • go-labs/lab128/lab004/main.go
    • Line 62: warning: exported function Select should have comment or be unexported (golint)
    • Line 105: warning: exported type User should have comment or be unexported (golint)
    • Line 124: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab174/lab001/main.go
    • Line 8: warning: exported type User should have comment or be unexported (golint)
    • Line 14: warning: exported method User.DoubleAge should have comment or be unexported (golint)
    • Line 18: warning: exported type Employee should have comment or be unexported (golint)
    • Line 26: warning: exported method Employee.Role should have comment or be unexported (golint)
    • go-labs/lab136/lab001/company.go
    • Line 3: warning: exported type Company should have comment or be unexported (golint)
    • Line 7: warning: exported function NewCompany should have comment or be unexported (golint)
    • Line 13: warning: exported method Company.Meeting should have comment or be unexported (golint)
    • go-labs/lab150/lab004/lab002/api/api.go
    • Line 10: warning: comment on exported function GetStringByInt should be of the form "GetStringByInt ..." (golint)
    • Line 25: warning: comment on exported function GetStructArrayByString should be of the form "GetStructArrayByString ..." (golint)
    • Line 37: warning: exported type Pet3 should have comment or be unexported (golint)
    • go-labs/lab225/lab002/servers/websocket/controller.go
    • Line 20: warning: comment on exported function PingController should be of the form "PingController ..." (golint)
    • Line 30: warning: comment on exported function LoginController should be of the form "LoginController ..." (golint)
    • Line 91: warning: comment on exported function HeartbeatController should be of the form "HeartbeatController ..." (golint)
    • Line 120: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab051/lab003/mynodes/Move.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 8: warning: exported type Move should have comment or be unexported (golint)
    • Line 12: warning: exported method Move.OnTick should have comment or be unexported (golint)
    • Line 12: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab194/lab001/main.go
    • Line 9: warning: exported function SendMail should have comment or be unexported (golint)
    • Line 12: warning: don't use underscores in Go names; var content_type should be contentType (golint)
    • Line 19: warning: don't use underscores in Go names; var send_to should be sendTo (golint)
    • go-labs/lab255/lab002/main.go
    • Line 33: warning: don't use underscores in Go names; var a_txt should be aTxt (golint)
    • Line 45: warning: don't use underscores in Go names; var a_pdf should be aPdf (golint)
    • Line 57: warning: don't use underscores in Go names; var a_jpg should be aJpg (golint)
    • go-labs/lab031/lab004/main.go
    • Line 10: warning: exported type Student should have comment or be unexported (golint)
    • Line 17: warning: exported function NewStudent should have comment or be unexported (golint)
    • Line 27: warning: exported function SimAddMemory should have comment or be unexported (golint)
    • Line 36: warning: don't use underscores in Go names; var Student_map should be StudentMap (golint)
    • Line 36: warning: exported var Student_map should have comment or be unexported (golint)
    • Line 58: warning: don't use underscores in Go names; var first_student_id should be firstStudentID (golint)
    • go-labs/lab040/lab004/server/main.go
    • Line 11: warning: exported type MyMethod should have comment or be unexported (golint)
    • Line 13: warning: exported type Args should have comment or be unexported (golint)
    • Line 18: warning: exported type DivResult should have comment or be unexported (golint)
    • Line 22: warning: exported method MyMethod.Mult should have comment or be unexported (golint)
    • Line 30: warning: exported method MyMethod.Div should have comment or be unexported (golint)
    • go-labs/lab127/lab002/main.go
    • Line 11: warning: exported type User should have comment or be unexported (golint)
    • Line 53: warning: exported function CreateUser should have comment or be unexported (golint)
    • Line 70: warning: exported function GetUser should have comment or be unexported (golint)
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab243/lab001/model.go
    • Line 8: warning: exported type Message should have comment or be unexported (golint)
    • Line 19: warning: exported function MessageTable should have comment or be unexported (golint)
    • Line 23: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 29: warning: exported type User should have comment or be unexported (golint)
    • Line 35: warning: exported method User.TableName should have comment or be unexported (golint)
    • go-labs/lab051/lab007/mynode/GetEnemy.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 8: warning: exported type GetEnemy should have comment or be unexported (golint)
    • Line 12: warning: exported method GetEnemy.Tick should have comment or be unexported (golint)
    • Line 12: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab093/lab004/main.go
    • Line 17: warning: error var foundDir should have name of the form errFoo (golint)
    • Line 73: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 113: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab074/lab006/main.go
    • Line 51: warning: don't use underscores in Go names; var recovered_pt should be recoveredPt (golint)
    • Line 63: warning: don't use underscores in Go names; var recovered_pt should be recoveredPt (golint)
    • go-labs/lab128/lab005/main.go
    • Line 58: warning: exported type HeatMap should have comment or be unexported (golint)
    • Line 70: warning: exported method HeatMap.TableName should have comment or be unexported (golint)
    • Line 86: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab150/lab006/models/base.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: exported var Db should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function Register should be of the form "Register ..." (golint)
    • Line 36: warning: exported function IsNotFound should have comment or be unexported (golint)
    • Line 55: warning: comment on exported type Response should be of the form "Response ..." (with optional leading article) (golint)
    • go-labs/lab051/lab004/mynodes/Attack.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type Attack should have comment or be unexported (golint)
    • Line 13: warning: exported method Attack.GetEnemiesFromBlackboard should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 24: warning: exported method Attack.OnTick should have comment or be unexported (golint)
    • Line 24: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab125/lab001/main.go
    • Line 18: warning: exported function A should have comment or be unexported (golint)
    • Line 22: warning: exported function B should have comment or be unexported (golint)
    • Line 26: warning: exported function C should have comment or be unexported (golint)
    • Line 30: warning: exported function D should have comment or be unexported (golint)
    • Line 34: warning: exported function E should have comment or be unexported (golint)
    • go-labs/lab136/lab001/person.go
    • Line 5: warning: exported type Person should have comment or be unexported (golint)
    • Line 9: warning: exported function NewPerson should have comment or be unexported (golint)
    • Line 15: warning: exported method Person.SayHello should have comment or be unexported (golint)
    • go-labs/lab150/lab004/lab003/web/handler.go
    • Line 3: warning: comment on exported type Pet should be of the form "Pet ..." (with optional leading article) (golint)
    • Line 20: warning: exported type Pet2 should have comment or be unexported (golint)
    • Line 24: warning: exported type APIError should have comment or be unexported (golint)
    • go-labs/lab051/lab004/mynodes/Move.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type Move should have comment or be unexported (golint)
    • Line 13: warning: exported method Move.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab051/lab008/mynode/HasDamage.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 11: warning: exported type HasDamage should have comment or be unexported (golint)
    • Line 15: warning: exported method HasDamage.OnTick should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 20: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab051/lab008/fight/fight.go
    • Line 7: warning: exported type ArmyGroup should have comment or be unexported (golint)
    • Line 14: warning: exported type Army should have comment or be unexported (golint)
    • Line 32: warning: exported type Hero should have comment or be unexported (golint)
    • Line 38: warning: exported type Soldier should have comment or be unexported (golint)
    • Line 44: warning: comment on exported type DamageUnit should be of the form "DamageUnit ..." (with optional leading article) (golint)
    • Line 53: warning: exported type FrameDamageUnit should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method ArmyGroup.IsDead should be of the form "IsDead ..." (golint)
    • Line 68: warning: comment on exported method Army.IsDead should be of the form "IsDead ..." (golint)
    • Line 72: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 76: warning: exported method Army.SimDead should have comment or be unexported (golint)
    • Line 80: warning: exported method Army.HasEnemy should have comment or be unexported (golint)
    • Line 83: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 87: warning: exported method Army.HasDamage should have comment or be unexported (golint)
    • Line 90: 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 94: warning: exported method Army.IsEnemyInRange should have comment or be unexported (golint)
    • Line 98: warning: exported method Army.Attack should have comment or be unexported (golint)
    • Line 106: warning: exported method Army.AddDamageUnit should have comment or be unexported (golint)
    • Line 117: warning: exported method Army.GetAtk should have comment or be unexported (golint)
    • Line 117: warning: don't use underscores in Go names; method parameter atk_type should be atkType (golint)
    • Line 120: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 124: warning: exported method Army.BeHurt should have comment or be unexported (golint)
    • Line 134: warning: exported method Army.CalDamage should have comment or be unexported (golint)
    • Line 146: warning: exported function GetArmyByFieldId should have comment or be unexported (golint)
    • Line 153: warning: comment on exported method Hero.IsDead should be of the form "IsDead ..." (golint)
    • Line 157: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 161: warning: exported method Hero.GetAtk should have comment or be unexported (golint)
    • Line 164: warning: exported method Hero.BeHurt should have comment or be unexported (golint)
    • Line 171: warning: comment on exported method Soldier.IsDead should be of the form "IsDead ..." (golint)
    • Line 175: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 179: warning: exported method Soldier.GetAtk should have comment or be unexported (golint)
    • Line 182: warning: exported method Soldier.GetLife should have comment or be unexported (golint)
    • Line 185: warning: exported method Soldier.BeHurt should have comment or be unexported (golint)
    • go-labs/lab225/lab001/models/msg_model.go
    • Line 13: warning: exported const MessageTypeText should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 28: warning: exported function NewTestMsg should have comment or be unexported (golint)
    • Line 46: warning: comment on exported function GetMsgData should be of the form "GetMsgData ..." (golint)
    • Line 52: warning: comment on exported function GetTextMsgData should be of the form "GetTextMsgData ..." (golint)
    • Line 58: warning: comment on exported function GetTextMsgDataEnter should be of the form "GetTextMsgDataEnter ..." (golint)
    • Line 64: warning: comment on exported function GetTextMsgDataExit should be of the form "GetTextMsgDataExit ..." (golint)
    • go-labs/lab225/lab001/controllers/user/user_controller.go
    • Line 21: warning: comment on exported function List should be of the form "List ..." (golint)
    • Line 36: warning: comment on exported function Online should be of the form "Online ..." (golint)
    • Line 54: warning: comment on exported function SendMessage should be of the form "SendMessage ..." (golint)
    • Line 88: warning: comment on exported function SendMessageAll should be of the form "SendMessageAll ..." (golint)
    • go-labs/lab225/lab001/models/request_model.go
    • Line 10: warning: comment on exported type Request should be of the form "Request ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported type Login should be of the form "Login ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported type HeartBeat should be of the form "HeartBeat ..." (with optional leading article) (golint)
    • go-labs/lab051/lab007/mynode/Move.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 9: warning: exported type Move should have comment or be unexported (golint)
    • Line 13: warning: exported method Move.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab051/lab008/fight/fightConfig.go
    • Line 10: warning: comment on exported var FightFactorsXml should be of the form "FightFactorsXml ..." (golint)
    • Line 13: warning: exported type FightFactorsXmlStruct should have comment or be unexported (golint)
    • Line 19: warning: comment on exported type FightFactorXmlStruct should be of the form "FightFactorXmlStruct ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported type CloseCombatPosFactorXmlStruct should be of the form "CloseCombatPosFactorXmlStruct ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported type MoveSpeedXmlStruct should be of the form "MoveSpeedXmlStruct ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported type ArmyGroupXml should be of the form "ArmyGroupXml ..." (with optional leading article) (golint)
    • Line 43: warning: exported type ArmyGroupXmls should have comment or be unexported (golint)
    • Line 47: warning: comment on exported type ArmyFormationXml should be of the form "ArmyFormationXml ..." (with optional leading article) (golint)
    • Line 52: warning: exported type ArmyFormationXmls should have comment or be unexported (golint)
    • Line 56: warning: comment on exported type HeroXml should be of the form "HeroXml ..." (with optional leading article) (golint)
    • Line 69: warning: exported type HeroXmls should have comment or be unexported (golint)
    • Line 73: warning: comment on exported type SoldierXml should be of the form "SoldierXml ..." (with optional leading article) (golint)
    • Line 85: warning: exported type SoldierXmls should have comment or be unexported (golint)
    • Line 89: warning: comment on exported type SoldierTypeXml should be of the form "SoldierTypeXml ..." (with optional leading article) (golint)
    • Line 97: warning: exported type SoldierTypeXmls should have comment or be unexported (golint)
    • Line 101: warning: exported type PosBaseXml should have comment or be unexported (golint)
    • Line 109: warning: exported type PosBaseXmls should have comment or be unexported (golint)
    • Line 115: warning: comment on exported type FightFactorStruct should be of the form "FightFactorStruct ..." (with optional leading article) (golint)
    • Line 123: warning: exported var FightFactor should have comment or be unexported (golint)
    • Line 125: warning: exported type PosOffset should have comment or be unexported (golint)
    • Line 130: warning: exported type CloseCombatPosFactorStruct should have comment or be unexported (golint)
    • Line 134: warning: exported var CloseCombatPosFactor should have comment or be unexported (golint)
    • Line 135: warning: exported var CloseCombatPosFactorSpec should have comment or be unexported (golint)
    • Line 137: warning: exported var MoveSpeedFactor should have comment or be unexported (golint)
    • Line 139: warning: don't use underscores in Go names; var ArmyGroupBase_map should be ArmyGroupBaseMap (golint)
    • Line 139: warning: exported var ArmyGroupBase_map should have comment or be unexported (golint)
    • Line 141: warning: exported type ArmyGroupBase should have comment or be unexported (golint)
    • Line 146: warning: exported type ArmyBase should have comment or be unexported (golint)
    • Line 152: warning: don't use underscores in Go names; var ArmyFormationBase_map should be ArmyFormationBaseMap (golint)
    • Line 152: warning: exported var ArmyFormationBase_map should have comment or be unexported (golint)
    • Line 154: warning: exported type ArmyFormationBase should have comment or be unexported (golint)
    • Line 158: warning: exported type PosBase should have comment or be unexported (golint)
    • Line 167: warning: don't use underscores in Go names; var PosBase_map should be PosBaseMap (golint)
    • Line 167: warning: exported var PosBase_map should have comment or be unexported (golint)
    • Line 169: warning: don't use underscores in Go names; var HeroBase_map should be HeroBaseMap (golint)
    • Line 169: warning: exported var HeroBase_map should have comment or be unexported (golint)
    • Line 171: warning: exported type HeroBase should have comment or be unexported (golint)
    • Line 184: warning: don't use underscores in Go names; var SoldierBase_map should be SoldierBaseMap (golint)
    • Line 184: warning: exported var SoldierBase_map should have comment or be unexported (golint)
    • Line 186: warning: exported type SoldierBase should have comment or be unexported (golint)
    • Line 198: warning: don't use underscores in Go names; var SoldierTypeBase_map should be SoldierTypeBaseMap (golint)
    • Line 198: warning: exported var SoldierTypeBase_map should have comment or be unexported (golint)
    • Line 200: warning: exported type SoldierTypeBase should have comment or be unexported (golint)
    • Line 384: warning: don't use underscores in Go names; var pos_id should be posID (golint)
    • go-labs/lab088/lab005/main.go
    • Line 9: warning: exported type Sector should have comment or be unexported (golint)
    • Line 16: warning: exported method Sector.ContainPoint should have comment or be unexported (golint)
    • Line 44: warning: exported function CalAngle should have comment or be unexported (golint)
    • Line 70: warning: comment on exported function HandleAngle should be of the form "HandleAngle ..." (golint)
    • go-labs/lab136/lab002/spider/spider.go
    • Line 3: warning: exported type Spider should have comment or be unexported (golint)
    • Line 7: warning: comment on exported function CreateGoVersionSpider should be of the form "CreateGoVersionSpider ..." (golint)
    • go-labs/lab030/lab003/client/protocol/protocol.go
    • Line 1: warning: package comment should be of the form "Package protocol ..." (golint)
    • Line 10: warning: exported const ConstHeader should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported function Enpack should be of the form "Enpack ..." (golint)
    • Line 30: warning: comment on exported function Depack should be of the form "Depack ..." (golint)
    • Line 56: warning: comment on exported function IntToBytes should be of the form "IntToBytes ..." (golint)
    • Line 65: warning: comment on exported function BytesToInt should be of the form "BytesToInt ..." (golint)
    • go-labs/lab150/lab006/models/user.go
    • Line 12: warning: comment on exported type User should be of the form "User ..." (with optional leading article) (golint)
    • Line 20: warning: comment on exported function UserAdminCheckLogin should be of the form "UserAdminCheckLogin ..." (golint)
    • Line 27: warning: comment on exported function CheckLogin should be of the form "CheckLogin ..." (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 51: 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 58: warning: comment on exported function UpdateOauthTokenByUserId should be of the form "UpdateOauthTokenByUserId ..." (golint)
    • Line 66: warning: comment on exported function UserAdminLogout should be of the form "UserAdminLogout ..." (golint)
    • Line 72: warning: exported function CreateUser should have comment or be unexported (golint)
    • go-labs/lab031/lab005/main.go
    • Line 9: warning: exported type Student should have comment or be unexported (golint)
    • Line 16: warning: exported function NewStudent should have comment or be unexported (golint)
    • Line 26: warning: exported function SimAddMemory should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; var Student_map should be StudentMap (golint)
    • Line 35: warning: exported var Student_map should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; var first_student_id should be firstStudentID (golint)
    • go-labs/lab074/lab005/main.go
    • Line 52: warning: don't use underscores in Go names; var recovered_pt should be recoveredPt (golint)
    • Line 64: warning: don't use underscores in Go names; var recovered_pt should be recoveredPt (golint)
    • go-labs/lab128/lab007/model/model.go
    • Line 9: warning: exported type JSON should have comment or be unexported (golint)
    • Line 11: warning: exported method JSON.Value should have comment or be unexported (golint)
    • Line 17: warning: exported method JSON.Scan should have comment or be unexported (golint)
    • Line 29: warning: exported method JSON.MarshalJSON should have comment or be unexported (golint)
    • Line 29: warning: receiver name m should be consistent with previous receiver name j for JSON (golint)
    • Line 35: warning: exported method JSON.UnmarshalJSON should have comment or be unexported (golint)
    • Line 35: warning: receiver name m should be consistent with previous receiver name j for JSON (golint)
    • Line 42: warning: exported method JSON.IsNull should have comment or be unexported (golint)
    • Line 45: warning: exported method JSON.Equals should have comment or be unexported (golint)
    • go-labs/lab243/lab002/model.go
    • Line 5: warning: exported type AuthCode should have comment or be unexported (golint)
    • Line 21: warning: exported type Team should have comment or be unexported (golint)
    • Line 32: warning: exported method Team.TableName should have comment or be unexported (golint)
    • go-labs/lab040/lab007/server/main.go
    • Line 13: warning: exported const Addr should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type QuerySrvImpl should have comment or be unexported (golint)
    • Line 19: warning: exported method QuerySrvImpl.QryUser should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: exported method QuerySrvImpl.QueryPhone should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 57: warning: exported type Student should have comment or be unexported (golint)
    • Line 64: warning: exported var StudentMap should have comment or be unexported (golint)
    • go-labs/lab051/lab004/mynodes/MyStruct.go
    • Line 8: warning: exported type Army should have comment or be unexported (golint)
    • Line 18: warning: exported type ArmyGroup should have comment or be unexported (golint)
    • Line 22: warning: exported function NewArmyGroup should have comment or be unexported (golint)
    • Line 26: warning: exported method ArmyGroup.IsDead should have comment or be unexported (golint)
    • Line 35: warning: exported function NewArmy should have comment or be unexported (golint)
    • Line 39: warning: exported method Army.IsDead should have comment or be unexported (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 47: warning: exported method Army.HasEnemyInRange should have comment or be unexported (golint)
    • Line 64: warning: exported method Army.Attack should have comment or be unexported (golint)
    • Line 77: warning: exported method Army.Move should have comment or be unexported (golint)
    • go-labs/lab128/lab012/main.go
    • Line 57: warning: exported type AuthCode should have comment or be unexported (golint)
    • Line 62: warning: exported method AuthCode.TableName should have comment or be unexported (golint)
    • Line 66: warning: exported type Crm should have comment or be unexported (golint)
    • Line 72: warning: exported method Crm.TableName should have comment or be unexported (golint)
    • Line 76: warning: exported type User should have comment or be unexported (golint)
    • Line 82: warning: exported method User.TableName should have comment or be unexported (golint)
    • Line 112: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab019/lab001/main.go
    • Line 8: warning: exported type Email should have comment or be unexported (golint)
    • Line 12: warning: exported type Address should have comment or be unexported (golint)
    • Line 15: warning: exported type Result should have comment or be unexported (golint)
    • go-labs/lab030/lab005/server/main.go
    • Line 45: warning: comment on exported function HeartBeating should be of the form "HeartBeating ..." (golint)
    • Line 60: warning: exported function GravelChannel should have comment or be unexported (golint)
    • Line 68: warning: exported function Log should have comment or be unexported (golint)
    • go-labs/lab247/lab002/main.go
    • Line 33: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 58: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 83: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • go-labs/lab039/lab003/main.go
    • Line 7: warning: exported type TransLog should have comment or be unexported (golint)
    • Line 12: warning: exported type DataBase should have comment or be unexported (golint)
    • Line 17: warning: exported type Player should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDataBase should have comment or be unexported (golint)
    • Line 26: warning: exported method DataBase.Transaction should have comment or be unexported (golint)
    • Line 44: warning: exported method DataBase.LookupPlayer should have comment or be unexported (golint)
    • Line 47: warning: exported method DataBase.InsertPlayer should have comment or be unexported (golint)
    • Line 53: warning: exported method DataBase.DeletePlayer should have comment or be unexported (golint)
    • Line 58: warning: exported method DataBase.UpdatePlayer should have comment or be unexported (golint)
    • Line 64: warning: exported type TransType should have comment or be unexported (golint)
    • Line 67: warning: exported const INSERT should have comment (or a comment on this block) or be unexported (golint)
    • Line 72: warning: exported type PlayerTransLog should have comment or be unexported (golint)
    • Line 78: warning: exported method PlayerTransLog.Commit should have comment or be unexported (golint)
    • Line 88: warning: exported method PlayerTransLog.RollBack should have comment or be unexported (golint)
    • go-labs/lab051/lab007/mynode/EnemyInRange.go
    • Line 5: warning: should not use dot imports (golint)
    • Line 9: warning: exported type EnemyInRange should have comment or be unexported (golint)
    • Line 13: warning: exported method EnemyInRange.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 16: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-labs/lab225/lab002/servers/websocket/client_manager.go
    • Line 20: warning: comment on exported type ClientManager should be of the form "ClientManager ..." (with optional leading article) (golint)
    • Line 32: warning: exported function NewClientManager should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function GetUserKey should be of the form "GetUserKey ..." (golint)
    • Line 54: warning: exported method ClientManager.InClient should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method ClientManager.GetClients should be of the form "GetClients ..." (golint)
    • Line 77: warning: comment on exported method ClientManager.ClientsRange should be of the form "ClientsRange ..." (golint)
    • Line 92: warning: comment on exported method ClientManager.GetClientsLen should be of the form "GetClientsLen ..." (golint)
    • Line 100: warning: comment on exported method ClientManager.AddClients should be of the form "AddClients ..." (golint)
    • Line 108: warning: comment on exported method ClientManager.DelClients should be of the form "DelClients ..." (golint)
    • Line 118: warning: comment on exported method ClientManager.GetUserClient should be of the form "GetUserClient ..." (golint)
    • Line 131: warning: comment on exported method ClientManager.GetUsersLen should be of the form "GetUsersLen ..." (golint)
    • Line 138: warning: comment on exported method ClientManager.AddUsers should be of the form "AddUsers ..." (golint)
    • Line 146: warning: comment on exported method ClientManager.DelUsers should be of the form "DelUsers ..." (golint)
    • Line 165: warning: comment on exported method ClientManager.GetUserKeys should be of the form "GetUserKeys ..." (golint)
    • Line 178: warning: comment on exported method ClientManager.GetUserList should be of the form "GetUserList ..." (golint)
    • Line 195: warning: comment on exported method ClientManager.GetUserClients should be of the form "GetUserClients ..." (golint)
    • Line 217: warning: comment on exported method ClientManager.EventRegister should be of the form "EventRegister ..." (golint)
    • Line 226: warning: comment on exported method ClientManager.EventLogin should be of the form "EventLogin ..." (golint)
    • Line 242: warning: comment on exported method ClientManager.EventUnregister should be of the form "EventUnregister ..." (golint)
    • Line 294: warning: comment on exported function GetManagerInfo should be of the form "GetManagerInfo ..." (golint)
    • Line 323: warning: comment on exported function GetUserClient should be of the form "GetUserClient ..." (golint)
    • Line 330: warning: comment on exported function ClearTimeoutConnections should be of the form "ClearTimeoutConnections ..." (golint)
    • Line 344: warning: comment on exported function GetUserList should be of the form "GetUserList ..." (golint)
    • Line 353: warning: comment on exported function AllSendMessages should be of the form "AllSendMessages ..." (golint)
    • go-labs/lab128/lab007/main.go
    • Line 61: warning: exported type JsonData should have comment or be unexported (golint)
    • Line 66: warning: exported method JsonData.TableName should have comment or be unexported (golint)
    • Line 70: warning: exported type People should have comment or be unexported (golint)
    • Line 76: warning: exported type DBConfig should have comment or be unexported (golint)
    • go-labs/lab083/lab002/main.go
    • Line 17: warning: exported type ActionLog should have comment or be unexported (golint)
    • Line 44: warning: exported const INDEX_NAME should have comment (or a comment on this block) or be unexported (golint)
    • go-labs/lab051/lab004/mynodes/MyLog.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported type MyLog should have comment or be unexported (golint)
    • Line 13: warning: exported method MyLog.OnTick should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab225/lab001/servers/websocket/init_acc.go
    • Line 28: warning: exported function GetAppIds should have comment or be unexported (golint)
    • Line 33: warning: exported function GetServer should have comment or be unexported (golint)
    • Line 39: warning: exported function IsLocal should have comment or be unexported (golint)
    • Line 47: warning: exported function InAppIds should have comment or be unexported (golint)
    • Line 60: warning: comment on exported function StartWebSocket should be of the form "StartWebSocket ..." (golint)
    • go-labs/lab051/lab007/mynode/Attack.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 10: warning: exported type Attack should have comment or be unexported (golint)
    • Line 14: warning: exported method Attack.OnTick should have comment or be unexported (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-labs/lab051/lab008/mynode/IsEnemyInRange.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 10: warning: exported type IsEnemyInRange should have comment or be unexported (golint)
    • Line 14: warning: exported method IsEnemyInRange.OnTick should have comment or be unexported (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 18: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words