Preparing report...

Report for github.com/better-go/pkg

A+    Excellent!    Found 86 issues across 155 files

Tweet

gofmt93%

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!


gocyclo100%

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.

No problems detected. Good job!


golint50%

Golint is a linter for Go source code.

    • pkg/com/jpush/jpush.go
    • Line 27: warning: comment on exported var AllPlatform should be of the form "AllPlatform ..." (golint)
    • Line 29: warning: exported var IOS should have comment or be unexported (golint)
    • Line 34: warning: exported type JPush should have comment or be unexported (golint)
    • Line 43: warning: exported function NewJPush should have comment or be unexported (golint)
    • Line 51: warning: comment on exported method JPush.SetPlatform should be of the form "SetPlatform ..." (golint)
    • Line 65: warning: comment on exported method JPush.SetAudience should be of the form "SetAudience ..." (golint)
    • Line 98: warning: comment on exported method JPush.SetNotice should be of the form "SetNotice ..." (golint)
    • Line 138: warning: comment on exported method JPush.SetMessage should be of the form "SetMessage ..." (golint)
    • Line 146: warning: comment on exported method JPush.SetPayload should be of the form "SetPayload ..." (golint)
    • Line 157: warning: comment on exported method JPush.SendMessage should be of the form "SendMessage ..." (golint)
    • pkg/crypto/signature/sign.go
    • Line 40: warning: comment on exported const SignPublicKeyName should be of the form "SignPublicKeyName ..." (golint)
    • Line 42: warning: exported const SignPrivateKeyName should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: comment on exported const SignTypeMD5 should be of the form "SignTypeMD5 ..." (golint)
    • Line 55: warning: exported type Signer should have comment or be unexported (golint)
    • Line 68: warning: comment on exported type PrivateKeyFunc should be of the form "PrivateKeyFunc ..." (with optional leading article) (golint)
    • Line 71: warning: comment on exported type SignAlgorithmFunc should be of the form "SignAlgorithmFunc ..." (with optional leading article) (golint)
    • Line 74: warning: comment on exported type DictType should be of the form "DictType ..." (with optional leading article) (golint)
    • Line 83: warning: exported function New should have comment or be unexported (golint)
    • Line 108: warning: comment on exported method Signer.Sign should be of the form "Sign ..." (golint)
    • Line 144: warning: comment on exported method Signer.Verify should be of the form "Verify ..." (golint)
    • Line 182: warning: exported method Signer.SignMD5 should have comment or be unexported (golint)
    • Line 204: warning: exported method Signer.VerifyMD5 should have comment or be unexported (golint)
    • Line 222: warning: comment on exported method Signer.SignSHA256 should be of the form "SignSHA256 ..." (golint)
    • Line 245: warning: exported method Signer.VerifySHA256 should have comment or be unexported (golint)
    • Line 263: warning: comment on exported method Signer.SignSHA512 should be of the form "SignSHA512 ..." (golint)
    • Line 285: warning: exported method Signer.VerifySHA512 should have comment or be unexported (golint)
    • Line 344: warning: comment on exported function SignSHA256 should be of the form "SignSHA256 ..." (golint)
    • Line 358: warning: comment on exported function VerifySHA256 should be of the form "VerifySHA256 ..." (golint)
    • pkg/net/graphql/graphql_client.go
    • Line 11: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 17: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 24: warning: comment on exported method Client.Query should be of the form "Query ..." (golint)
    • Line 29: warning: comment on exported method Client.Mutation should be of the form "Mutation ..." (golint)
    • Line 34: warning: comment on exported method Client.QueryRaw should be of the form "QueryRaw ..." (golint)
    • pkg/com/apple/apns.go
    • Line 10: warning: comment on exported type Push should be of the form "Push ..." (with optional leading article) (golint)
    • pkg/notify/email/email.go
    • Line 9: warning: comment on exported type Mailer should be of the form "Mailer ..." (with optional leading article) (golint)
    • Line 16: warning: exported function NewMailer should have comment or be unexported (golint)
    • Line 23: warning: exported method Mailer.Send should have comment or be unexported (golint)
    • pkg/errors/error.go
    • Line 7: warning: comment on exported function PanicError should be of the form "PanicError ..." (golint)
    • pkg/com/sohu/sendcloud/sms.go
    • Line 8: warning: exported type Sms should have comment or be unexported (golint)
    • Line 16: warning: exported function NewSms should have comment or be unexported (golint)
    • Line 26: warning: exported method Sms.Send should have comment or be unexported (golint)
    • Line 33: warning: exported method Sms.SendVoice should have comment or be unexported (golint)
    • pkg/mq/kafka/option.go
    • Line 7: warning: exported type ProducerOptions should have comment or be unexported (golint)
    • Line 22: warning: exported type ConsumerOptions should have comment or be unexported (golint)
    • Line 25: warning: exported type Meta should have comment or be unexported (golint)
    • pkg/database/orm/option.go
    • Line 27: warning: comment on exported const MySQL should be of the form "MySQL ..." (golint)
    • Line 31: warning: exported const SQLite should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported const DefaultDialect should be of the form "DefaultDialect ..." (golint)
    • Line 54: warning: comment on exported type Options should be of the form "Options ..." (with optional leading article) (golint)
    • Line 73: warning: comment on exported type OptionFunc should be of the form "OptionFunc ..." (with optional leading article) (golint)
    • Line 76: warning: comment on exported function NewOptions should be of the form "NewOptions ..." (golint)
    • Line 105: warning: comment on exported function Dialect should be of the form "Dialect ..." (golint)
    • Line 112: warning: comment on exported function DSN should be of the form "DSN ..." (golint)
    • Line 119: warning: comment on exported function SingularTable should be of the form "SingularTable ..." (golint)
    • Line 126: warning: comment on exported function DebugMode should be of the form "DebugMode ..." (golint)
    • Line 133: warning: comment on exported function ConnParams should be of the form "ConnParams ..." (golint)
    • Line 148: warning: comment on exported function TableFields should be of the form "TableFields ..." (golint)
    • Line 168: warning: exported method Options.DBConn should have comment or be unexported (golint)
    • Line 198: warning: exported method Options.DBConnV2 should have comment or be unexported (golint)
    • pkg/x/gin/response.go
    • Line 3: warning: comment on exported type ResponseData should be of the form "ResponseData ..." (with optional leading article) (golint)
    • pkg/crypto/signature/sign_algo.go
    • Line 10: warning: comment on exported function WithMD5 should be of the form "WithMD5 ..." (golint)
    • Line 19: warning: comment on exported function WithSHA256 should be of the form "WithSHA256 ..." (golint)
    • Line 42: warning: comment on exported function WithSHA512 should be of the form "WithSHA512 ..." (golint)
    • pkg/container/dict/dict.go
    • Line 12: warning: comment on exported type Dict should be of the form "Dict ..." (with optional leading article) (golint)
    • Line 23: warning: exported method Dict.Get should have comment or be unexported (golint)
    • Line 27: warning: exported method Dict.Set should have comment or be unexported (golint)
    • pkg/convert/string.go
    • Line 5: warning: exported function IntToString should have comment or be unexported (golint)
    • Line 9: warning: exported function Int64ToString should have comment or be unexported (golint)
    • Line 15: warning: exported function StringToInt should have comment or be unexported (golint)
    • Line 19: warning: exported function StringToInt64 should have comment or be unexported (golint)
    • pkg/log/log.go
    • Line 50: warning: exported function Info should have comment or be unexported (golint)
    • Line 59: warning: exported function Debug should have comment or be unexported (golint)
    • Line 63: warning: exported function Error should have comment or be unexported (golint)
    • Line 69: warning: exported function Infof should have comment or be unexported (golint)
    • Line 73: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 77: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 81: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 87: warning: exported function Infow should have comment or be unexported (golint)
    • Line 91: warning: exported function Warnw should have comment or be unexported (golint)
    • Line 104: warning: exported function Errorw should have comment or be unexported (golint)
    • pkg/time/date.go
    • Line 20: warning: comment on exported function BeginningOfMonthWithMonthOffset should be of the form "BeginningOfMonthWithMonthOffset ..." (golint)
    • Line 25: warning: comment on exported function EndOfMonthWithMonthOffset should be of the form "EndOfMonthWithMonthOffset ..." (golint)
    • Line 30: warning: comment on exported function BeginningOfDayWithDayOffset should be of the form "BeginningOfDayWithDayOffset ..." (golint)
    • Line 35: warning: comment on exported function EndOfDayWithDayOffset should be of the form "EndOfDayWithDayOffset ..." (golint)
    • Line 42: warning: comment on exported function BeginningOfMonthAgo should be of the form "BeginningOfMonthAgo ..." (golint)
    • Line 47: warning: comment on exported function EndOfMonthAgo should be of the form "EndOfMonthAgo ..." (golint)
    • Line 54: warning: comment on exported function BeginningOfMonthLater should be of the form "BeginningOfMonthLater ..." (golint)
    • Line 59: warning: comment on exported function EndOfMonthLater should be of the form "EndOfMonthLater ..." (golint)
    • Line 66: warning: comment on exported function BeginOfMonthWithDayOffset should be of the form "BeginOfMonthWithDayOffset ..." (golint)
    • pkg/x/gin/server/server.go
    • Line 22: warning: exported type Option should have comment or be unexported (golint)
    • Line 24: warning: exported type HandlerOption should have comment or be unexported (golint)
    • Line 26: warning: exported type HandlerOptions should have comment or be unexported (golint)
    • Line 31: warning: exported type SubscriberOption should have comment or be unexported (golint)
    • Line 33: warning: exported type SubscriberOptions should have comment or be unexported (golint)
    • pkg/database/orm/model.go
    • Line 15: warning: exported type Model should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type UserModel should be of the form "UserModel ..." (with optional leading article) (golint)
    • Line 36: warning: comment on exported type UserUniqueModel should be of the form "UserUniqueModel ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported type StatusModel should be of the form "StatusModel ..." (with optional leading article) (golint)
    • Line 58: warning: comment on exported type TxModel should be of the form "TxModel ..." (with optional leading article) (golint)
    • Line 69: warning: comment on exported type TemplateModel should be of the form "TemplateModel ..." (with optional leading article) (golint)
    • pkg/database/orm/soft_delete.go
    • Line 11: warning: comment on exported const MySqlZeroTimestamp should be of the form "MySqlZeroTimestamp ..." (golint)
    • Line 19: warning: comment on exported type DeletedAt should be of the form "DeletedAt ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported method DeletedAt.QueryClauses should be of the form "QueryClauses ..." (golint)
    • Line 49: warning: comment on exported method DeletedAt.DeleteClauses should be of the form "DeleteClauses ..." (golint)
    • pkg/x/gin/client/options.go
    • Line 8: warning: exported type Options should have comment or be unexported (golint)
    • Line 31: warning: exported function NewOptions should have comment or be unexported (golint)
    • pkg/time/duration.go
    • Line 7: warning: comment on exported function MonthDurationWithMonthOffset should be of the form "MonthDurationWithMonthOffset ..." (golint)
    • Line 14: warning: comment on exported function DayDurationWithDayOffset should be of the form "DayDurationWithDayOffset ..." (golint)
    • Line 23: warning: comment on exported function MonthAgoDuration should be of the form "MonthAgoDuration ..." (golint)
    • Line 28: warning: comment on exported function MonthLaterDuration should be of the form "MonthLaterDuration ..." (golint)
    • Line 35: warning: comment on exported function MonthAgoDurationTs should be of the form "MonthAgoDurationTs ..." (golint)
    • pkg/conf/toml.go
    • Line 19: warning: exported function TomlInit should have comment or be unexported (golint)
    • Line 41: warning: exported function TomlGet should have comment or be unexported (golint)
    • Line 45: warning: exported function TomlScan should have comment or be unexported (golint)
    • Line 56: warning: exported function TomlMap should have comment or be unexported (golint)
    • pkg/cronjob/cron.go
    • Line 8: warning: comment on exported type CronJob should be of the form "CronJob ..." (with optional leading article) (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 27: warning: comment on exported method CronJob.RegisterTask should be of the form "RegisterTask ..." (golint)
    • Line 39: warning: comment on exported method CronJob.Run should be of the form "Run ..." (golint)
    • Line 44: warning: comment on exported method CronJob.RunAsync should be of the form "RunAsync ..." (golint)
    • Line 53: warning: comment on exported method CronJob.RunSync should be of the form "RunSync ..." (golint)
    • Line 62: warning: comment on exported method CronJob.Stop should be of the form "Stop ..." (golint)
    • pkg/convert/struct.go
    • Line 18: warning: comment on exported function StructToDict should be of the form "StructToDict ..." (golint)
    • Line 23: warning: comment on exported function StructToStringDict should be of the form "StructToStringDict ..." (golint)
    • Line 36: warning: comment on exported function StructToStringsDict should be of the form "StructToStringsDict ..." (golint)
    • pkg/cronjob/option.go
    • Line 3: warning: comment on exported type Tasks should be of the form "Tasks ..." (with optional leading article) (golint)
    • Line 8: warning: comment on exported type Task should be of the form "Task ..." (with optional leading article) (golint)
    • pkg/net/ws/websocket_server.go
    • Line 23: warning: comment on exported type MessageHandlerFunc should be of the form "MessageHandlerFunc ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported type AuthApiKeyValidateFunc should be of the form "AuthApiKeyValidateFunc ..." (with optional leading article) (golint)
    • Line 29: warning: comment on exported type WebSocketServer should be of the form "WebSocketServer ..." (with optional leading article) (golint)
    • Line 38: warning: exported function NewWebSocketServer should have comment or be unexported (golint)
    • Line 47: warning: comment on exported method WebSocketServer.DispatchWithAuth should be of the form "DispatchWithAuth ..." (golint)
    • Line 59: warning: comment on exported method WebSocketServer.Dispatch should be of the form "Dispatch ..." (golint)
    • Line 120: warning: exported function Middleware should have comment or be unexported (golint)
    • pkg/wrapper/retry/retry.go
    • Line 7: warning: comment on exported function WithSimpleRetry should be of the form "WithSimpleRetry ..." (golint)
    • Line 23: warning: comment on exported function WithRetry should be of the form "WithRetry ..." (golint)
    • pkg/time/string.go
    • Line 3: warning: comment on exported function MonthWithOffset should be of the form "MonthWithOffset ..." (golint)
    • Line 8: warning: comment on exported function TodayWithOffset should be of the form "TodayWithOffset ..." (golint)
    • Line 15: warning: comment on exported function CurrentMonth should be of the form "CurrentMonth ..." (golint)
    • Line 20: warning: comment on exported function LastMonth should be of the form "LastMonth ..." (golint)
    • Line 25: warning: comment on exported function NextMonth should be of the form "NextMonth ..." (golint)
    • Line 32: warning: comment on exported function Today should be of the form "Today ..." (golint)
    • Line 37: warning: comment on exported function Yesterday should be of the form "Yesterday ..." (golint)
    • Line 42: warning: comment on exported function Tomorrow should be of the form "Tomorrow ..." (golint)
    • pkg/time/ts.go
    • Line 8: warning: comment on exported function Gen10BitTimestamp should be of the form "Gen10BitTimestamp ..." (golint)
    • Line 14: warning: comment on exported function Gen19BitTimestamp should be of the form "Gen19BitTimestamp ..." (golint)
    • Line 20: warning: comment on exported function Gen13BitTimestamp should be of the form "Gen13BitTimestamp ..." (golint)
    • Line 28: warning: comment on exported function Gen10BitTs should be of the form "Gen10BitTs ..." (golint)
    • Line 33: warning: comment on exported function Gen19BitTs should be of the form "Gen19BitTs ..." (golint)
    • Line 38: warning: comment on exported function Gen13BitTs should be of the form "Gen13BitTs ..." (golint)
    • Line 43: warning: comment on exported function Is13BitTimestampValid should be of the form "Is13BitTimestampValid ..." (golint)
    • Line 54: warning: comment on exported function Is13BitTsValid should be of the form "Is13BitTsValid ..." (golint)
    • Line 78: warning: comment on exported function Duration10Bit should be of the form "Duration10Bit ..." (golint)
    • Line 83: warning: comment on exported function Duration13Bit should be of the form "Duration13Bit ..." (golint)
    • Line 88: warning: comment on exported function DurationWithSecond should be of the form "DurationWithSecond ..." (golint)
    • Line 105: warning: comment on exported function DurationWithMillisecond should be of the form "DurationWithMillisecond ..." (golint)
    • pkg/time/now_ex.go
    • Line 23: warning: comment on exported type NowEx should be of the form "NowEx ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported method NowEx.BeginningOfMonthWithMonthOffset should be of the form "BeginningOfMonthWithMonthOffset ..." (golint)
    • Line 52: warning: comment on exported method NowEx.EndOfMonthWithMonthOffset should be of the form "EndOfMonthWithMonthOffset ..." (golint)
    • Line 57: warning: comment on exported method NowEx.BeginningOfDayWithDayOffset should be of the form "BeginningOfDayWithDayOffset ..." (golint)
    • Line 64: warning: comment on exported method NowEx.EndOfDayWithDayOffset should be of the form "EndOfDayWithDayOffset ..." (golint)
    • Line 73: warning: comment on exported method NowEx.BeginningOfMonthAgo should be of the form "BeginningOfMonthAgo ..." (golint)
    • Line 78: warning: comment on exported method NowEx.EndOfMonthAgo should be of the form "EndOfMonthAgo ..." (golint)
    • Line 85: warning: comment on exported method NowEx.BeginningOfMonthLater should be of the form "BeginningOfMonthLater ..." (golint)
    • Line 90: warning: comment on exported method NowEx.EndOfMonthLater should be of the form "EndOfMonthLater ..." (golint)
    • pkg/database/orm/model_mixin.go
    • Line 9: warning: comment on exported type SqlBuilderMixin should be of the form "SqlBuilderMixin ..." (with optional leading article) (golint)
    • Line 14: warning: comment on exported method SqlBuilderMixin.ToSelectFields should be of the form "ToSelectFields ..." (golint)
    • pkg/x/go-zero/option/service.go
    • Line 8: warning: comment on exported type ServerUnit should be of the form "ServerUnit ..." (with optional leading article) (golint)
    • Line 16: warning: comment on exported type ClientUnit should be of the form "ClientUnit ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported type RestServerConf should be of the form "RestServerConf ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported type RpcServerConf should be of the form "RpcServerConf ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type RpcClientConf should be of the form "RpcClientConf ..." (with optional leading article) (golint)
    • pkg/com/sohu/sendcloud/sendcloud.go
    • Line 14: warning: exported type SendCloud should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSendCloud should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method SendCloud.SendEmail should be of the form "SendEmail ..." (golint)
    • Line 31: warning: comment on exported method SendCloud.SendSms should be of the form "SendSms ..." (golint)
    • pkg/mq/rabbitmq/producer.go
    • Line 10: warning: comment on exported type Producer should be of the form "Producer ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported function NewProducer should be of the form "NewProducer ..." (golint)
    • Line 33: warning: exported method Producer.Publish should have comment or be unexported (golint)
    • Line 112: warning: exported method Producer.Close should have comment or be unexported (golint)
    • pkg/com/sohu/sendcloud/option.go
    • Line 26: warning: comment on exported const MessageTypeCN should be of the form "MessageTypeCN ..." (golint)
    • Line 28: warning: exported const MessageTypeOversea should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: comment on exported type Option should be of the form "Option ..." (with optional leading article) (golint)
    • Line 69: warning: exported method Mail.Default should have comment or be unexported (golint)
    • Line 74: warning: exported method Mail.ToSend should have comment or be unexported (golint)
    • Line 94: warning: comment on exported type MailTemplate should be of the form "MailTemplate ..." (with optional leading article) (golint)
    • Line 103: warning: exported method MailTemplate.Default should have comment or be unexported (golint)
    • Line 108: warning: exported method MailTemplate.ToSend should have comment or be unexported (golint)
    • Line 134: warning: exported method Message.Default should have comment or be unexported (golint)
    • Line 138: warning: exported method Message.ToSend should have comment or be unexported (golint)
    • Line 151: warning: comment on exported method Message.Sign should be of the form "Sign ..." (golint)
    • Line 158: warning: comment on exported type MessageVoice should be of the form "MessageVoice ..." (with optional leading article) (golint)
    • Line 171: warning: exported method MessageVoice.Default should have comment or be unexported (golint)
    • Line 175: warning: exported method MessageVoice.ToSend should have comment or be unexported (golint)
    • pkg/net/ws/socket_io_server.go
    • Line 16: warning: exported type SocketIOMessageHandlerFunc should have comment or be unexported (golint)
    • Line 18: warning: comment on exported type SocketIOServer should be of the form "SocketIOServer ..." (with optional leading article) (golint)
    • Line 23: warning: exported function NewSocketIOServer should have comment or be unexported (golint)
    • Line 31: warning: exported method SocketIOServer.RunV2 should have comment or be unexported (golint)
    • pkg/database/orm/mysql/mysql.go
    • Line 15: warning: exported type Client should have comment or be unexported (golint)
    • Line 21: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 33: warning: comment on exported function Classic should be of the form "Classic ..." (golint)
    • Line 54: warning: comment on exported function NewMySQLv2 should be of the form "NewMySQLv2 ..." (golint)
    • Line 70: warning: comment on exported method Client.DB should be of the form "DB ..." (golint)
    • Line 75: warning: comment on exported method Client.DBClassic should be of the form "DBClassic ..." (golint)
    • Line 80: warning: exported method Client.Close should have comment or be unexported (golint)
    • pkg/net/ws/option.go
    • Line 10: warning: exported type WebSocketOption should have comment or be unexported (golint)
    • Line 19: warning: exported method WebSocketOption.Uri should have comment or be unexported (golint)
    • Line 27: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 32: warning: exported method Message.FromJson should have comment or be unexported (golint)
    • Line 38: warning: exported method Message.ToJson should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method Message.FromProtoBuf should be of the form "FromProtoBuf ..." (golint)
    • Line 51: warning: exported method Message.ToProtoBuf should have comment or be unexported (golint)
    • Line 59: warning: exported type SocketIOOption should have comment or be unexported (golint)
    • Line 65: warning: exported type SocketIOEndpoint should have comment or be unexported (golint)
    • pkg/convert/map.go
    • Line 10: warning: comment on exported function StringsDictToDict should be of the form "StringsDictToDict ..." (golint)
    • Line 23: warning: comment on exported function StringsDictToStringDict should be of the form "StringsDictToStringDict ..." (golint)
    • pkg/cache/redis/redis.go
    • Line 33: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 39: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 46: warning: exported function NewRedis should have comment or be unexported (golint)
    • Line 54: warning: exported function NewRedisFull should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.V1 should have comment or be unexported (golint)
    • Line 62: warning: exported method Client.V2 should have comment or be unexported (golint)
    • Line 66: warning: exported method Client.Close should have comment or be unexported (golint)
    • pkg/net/ws/websocket_client.go
    • Line 5: warning: comment on exported type WebSocketClient should be of the form "WebSocketClient ..." (with optional leading article) (golint)
    • Line 13: warning: exported function NewWebSocketClient should have comment or be unexported (golint)
    • pkg/mq/rabbitmq/option.go
    • Line 16: warning: comment on exported type ProducerOption should be of the form "ProducerOption ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported type ConsumerOption should be of the form "ConsumerOption ..." (with optional leading article) (golint)
    • Line 51: warning: comment on exported type ConnOption should be of the form "ConnOption ..." (with optional leading article) (golint)
    • Line 61: warning: comment on exported method ConnOption.ConnUri should be of the form "ConnUri ..." (golint)
    • Line 76: warning: exported type Exchange should have comment or be unexported (golint)
    • Line 102: warning: exported type Queue should have comment or be unexported (golint)
    • pkg/random/uuid.go
    • Line 22: warning: comment on exported function Gen36BitUUID4 should be of the form "Gen36BitUUID4 ..." (golint)
    • Line 28: warning: comment on exported function Gen32BitUUID4 should be of the form "Gen32BitUUID4 ..." (golint)
    • Line 34: warning: comment on exported function Gen20BitUUID should be of the form "Gen20BitUUID ..." (golint)
    • Line 39: warning: comment on exported function Gen20BitUUIDLower should be of the form "Gen20BitUUIDLower ..." (golint)
    • Line 47: warning: comment on exported function GenUUID4 should be of the form "GenUUID4 ..." (golint)
    • Line 52: warning: comment on exported function Gen20BitDigit should be of the form "Gen20BitDigit ..." (golint)
    • Line 61: warning: comment on exported function GenDigit should be of the form "GenDigit ..." (golint)
    • pkg/mq/kafka/producer.go
    • Line 17: warning: exported type Producer should have comment or be unexported (golint)
    • Line 22: warning: exported function NewProducer should have comment or be unexported (golint)
    • Line 26: warning: exported type ProducerGroup should have comment or be unexported (golint)
    • Line 32: warning: comment on exported type ProducerLite should be of the form "ProducerLite ..." (with optional leading article) (golint)
    • Line 36: warning: comment on exported type ProducerStd should be of the form "ProducerStd ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type ProducerPro should be of the form "ProducerPro ..." (with optional leading article) (golint)
    • pkg/file/csv.go
    • Line 9: warning: comment on exported function ParseCsv should be of the form "ParseCsv ..." (golint)
    • pkg/mq/rabbitmq/consumer.go
    • Line 10: warning: comment on exported type TaskFunc should be of the form "TaskFunc ..." (with optional leading article) (golint)
    • Line 13: warning: comment on exported type Consumer should be of the form "Consumer ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported function NewConsumer should be of the form "NewConsumer ..." (golint)
    • Line 40: warning: comment on exported method Consumer.Consume should be of the form "Consume ..." (golint)
    • Line 97: warning: comment on exported method Consumer.Get should be of the form "Get ..." (golint)
    • Line 169: warning: exported method Consumer.Close should have comment or be unexported (golint)
    • pkg/cache/redis/expire.go
    • Line 5: warning: exported type Expiration should have comment or be unexported (golint)
    • Line 14: warning: exported function NewExpiration should have comment or be unexported (golint)
    • Line 25: warning: comment on exported method Expiration.Seconds should be of the form "Seconds ..." (golint)
    • Line 30: warning: comment on exported method Expiration.Minutes should be of the form "Minutes ..." (golint)
    • Line 35: warning: comment on exported method Expiration.Hours should be of the form "Hours ..." (golint)
    • Line 40: warning: comment on exported method Expiration.Days should be of the form "Days ..." (golint)
    • Line 45: warning: comment on exported method Expiration.Weeks should be of the form "Weeks ..." (golint)
    • Line 50: warning: comment on exported method Expiration.Months should be of the form "Months ..." (golint)
    • pkg/text/xss.go
    • Line 7: warning: comment on exported function AntiXssStrict should be of the form "AntiXssStrict ..." (golint)
    • Line 14: warning: comment on exported function AntiXssLite should be of the form "AntiXssLite ..." (golint)
    • pkg/errors/http.go
    • Line 9: warning: comment on exported type HttpError should be of the form "HttpError ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported function NewHttpError should be of the form "NewHttpError ..." (golint)
    • Line 27: warning: exported method HttpError.GetCode should have comment or be unexported (golint)
    • Line 32: warning: exported method HttpError.GetDetail should have comment or be unexported (golint)
    • Line 36: warning: exported method HttpError.GetId should have comment or be unexported (golint)
    • pkg/crypto/password.go
    • Line 17: warning: comment on exported function EncryptPassword should be of the form "EncryptPassword ..." (golint)
    • Line 23: warning: comment on exported function ValidatePassword should be of the form "ValidatePassword ..." (golint)
    • pkg/container/dict/string.go
    • Line 9: warning: comment on exported type StringDict should be of the form "StringDict ..." (with optional leading article) (golint)
    • Line 15: warning: exported method StringDict.Get should have comment or be unexported (golint)
    • Line 19: warning: exported method StringDict.Set should have comment or be unexported (golint)
    • pkg/com/sohu/sendcloud/email.go
    • Line 8: warning: exported type Email should have comment or be unexported (golint)
    • Line 16: warning: exported function NewEmail should have comment or be unexported (golint)
    • Line 26: warning: exported method Email.Send should have comment or be unexported (golint)
    • Line 34: warning: exported method Email.SendTemplate should have comment or be unexported (golint)
    • pkg/bot/wechat.go
    • Line 22: warning: exported type WeChatBot should have comment or be unexported (golint)
    • Line 26: warning: exported function NewWeChatBot should have comment or be unexported (golint)
    • Line 76: warning: exported type WeChatBotConfig should have comment or be unexported (golint)
    • Line 85: warning: exported type WebChatBotConfigItem should have comment or be unexported (golint)
    • Line 92: warning: comment on exported type MessageMeta should be of the form "MessageMeta ..." (with optional leading article) (golint)
    • Line 124: warning: exported method MessageMeta.ToBytes should have comment or be unexported (golint)
    • Line 129: warning: comment on exported type TextContent should be of the form "TextContent ..." (with optional leading article) (golint)
    • Line 136: warning: comment on exported type MarkdownContent should be of the form "MarkdownContent ..." (with optional leading article) (golint)
    • Line 141: warning: comment on exported type ImageContent should be of the form "ImageContent ..." (with optional leading article) (golint)
    • Line 147: warning: comment on exported type NewsContent should be of the form "NewsContent ..." (with optional leading article) (golint)
    • Line 157: warning: comment on exported type CodeContent should be of the form "CodeContent ..." (with optional leading article) (golint)
    • Line 163: warning: exported method CodeContent.ToString should have comment or be unexported (golint)
    • Line 187: warning: exported method WeChatBot.Warn should have comment or be unexported (golint)
    • Line 206: warning: exported method WeChatBot.Default should have comment or be unexported (golint)
    • Line 210: warning: exported method WeChatBot.Alarm should have comment or be unexported (golint)
    • pkg/os/path/path.go
    • Line 16: warning: comment on exported function RuntimePath should be of the form "RuntimePath ..." (golint)
    • Line 22: warning: comment on exported function CurrentDir should be of the form "CurrentDir ..." (golint)
    • Line 27: warning: comment on exported function ProjectRoot should be of the form "ProjectRoot ..." (golint)
    • Line 44: warning: comment on exported function ConfigPath should be of the form "ConfigPath ..." (golint)
    • pkg/cache/redis/options.go
    • Line 19: warning: exported type Options should have comment or be unexported (golint)
    • Line 51: warning: comment on exported type OptionFunc should be of the form "OptionFunc ..." (with optional leading article) (golint)
    • Line 54: warning: comment on exported method Options.Init should be of the form "Init ..." (golint)
    • Line 79: warning: exported method Options.ToOption1 should have comment or be unexported (golint)
    • Line 93: warning: exported method Options.ToOption2 should have comment or be unexported (golint)
    • pkg/os/signal/graceful.go
    • Line 12: warning: comment on exported type StartFunc should be of the form "StartFunc ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported type StopFunc should be of the form "StopFunc ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported function GracefulShutdown should be of the form "GracefulShutdown ..." (golint)
    • pkg/time/compare.go
    • Line 14: warning: comment on exported function Compare should be of the form "Compare ..." (golint)
    • Line 30: warning: comment on exported function IsBefore should be of the form "IsBefore ..." (golint)
    • Line 35: warning: comment on exported function IsAfter should be of the form "IsAfter ..." (golint)
    • Line 40: warning: comment on exported function IsEqual should be of the form "IsEqual ..." (golint)
    • pkg/container/slice/slice.go
    • Line 12: warning: exported type TaskResource should have comment or be unexported (golint)
    • Line 18: warning: comment on exported type TaskFunc should be of the form "TaskFunc ..." (with optional leading article) (golint)
    • Line 21: warning: exported function WithSlice should have comment or be unexported (golint)
    • pkg/com/google/gcm.go
    • Line 37: warning: comment on exported type Push should be of the form "Push ..." (with optional leading article) (golint)
    • pkg/notify/email/option.go
    • Line 7: warning: comment on exported type Option should be of the form "Option ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported type MailContent should be of the form "MailContent ..." (with optional leading article) (golint)
    • Line 18: warning: exported method MailContent.ToMail should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • pkg/crypto/signature/sign_test.go
    • Line 19: warning: ineffectual assignment to nonce (ineffassign)
    • Line 20: warning: ineffectual assignment to ts (ineffassign)
    • Line 115: warning: ineffectual assignment to nonce (ineffassign)
    • Line 116: warning: ineffectual assignment to ts (ineffassign)
    • Line 210: warning: ineffectual assignment to nonce (ineffassign)
    • Line 211: warning: ineffectual assignment to ts (ineffassign)
    • Line 315: warning: ineffectual assignment to nonce (ineffassign)
    • Line 316: warning: ineffectual assignment to ts (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!