Preparing report...

Report for github.com/gofaith/go-zero

A    Great!    Found 220 issues across 332 files

Tweet

gofmt85%

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!


gocyclo99%

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.

    • go-zero/core/mapping/utils.go
    • Line 56: warning: cyclomatic complexity 23 of function Repr() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 16 of function doParseKeyAndOptions() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 16 of function parseNumberRange() is high (> 15) (gocyclo)

golint46%

Golint is a linter for Go source code.

    • go-zero/core/load/adaptiveshedder.go
    • Line 29: warning: exported var ErrServiceOverloaded should have comment or be unexported (golint)
    • Line 40: warning: exported type Promise should have comment or be unexported (golint)
    • Line 45: warning: exported type Shedder should have comment or be unexported (golint)
    • Line 49: warning: exported type ShedderOption should have comment or be unexported (golint)
    • Line 70: warning: exported function Disable should have comment or be unexported (golint)
    • Line 74: warning: exported function NewAdaptiveShedder should have comment or be unexported (golint)
    • Line 216: warning: exported function WithBuckets should have comment or be unexported (golint)
    • Line 222: warning: exported function WithCpuThreshold should have comment or be unexported (golint)
    • Line 228: warning: exported function WithWindow should have comment or be unexported (golint)
    • go-zero/core/collection/set.go
    • Line 18: warning: exported type Set should have comment or be unexported (golint)
    • Line 23: warning: exported function NewSet should have comment or be unexported (golint)
    • Line 30: warning: exported function NewUnmanagedSet should have comment or be unexported (golint)
    • Line 37: warning: exported method Set.Add should have comment or be unexported (golint)
    • Line 43: warning: exported method Set.AddInt should have comment or be unexported (golint)
    • Line 49: warning: exported method Set.AddInt64 should have comment or be unexported (golint)
    • Line 55: warning: exported method Set.AddUint should have comment or be unexported (golint)
    • Line 61: warning: exported method Set.AddUint64 should have comment or be unexported (golint)
    • Line 67: warning: exported method Set.AddStr should have comment or be unexported (golint)
    • Line 73: warning: exported method Set.Contains should have comment or be unexported (golint)
    • Line 83: warning: exported method Set.Keys should have comment or be unexported (golint)
    • Line 93: warning: exported method Set.KeysInt should have comment or be unexported (golint)
    • Line 107: warning: exported method Set.KeysInt64 should have comment or be unexported (golint)
    • Line 121: warning: exported method Set.KeysUint should have comment or be unexported (golint)
    • Line 135: warning: exported method Set.KeysUint64 should have comment or be unexported (golint)
    • Line 149: warning: exported method Set.KeysStr should have comment or be unexported (golint)
    • Line 163: warning: exported method Set.Remove should have comment or be unexported (golint)
    • Line 168: warning: exported method Set.Count should have comment or be unexported (golint)
    • go-zero/core/syncx/atomicduration.go
    • Line 8: warning: exported type AtomicDuration should have comment or be unexported (golint)
    • Line 10: warning: exported function NewAtomicDuration should have comment or be unexported (golint)
    • Line 14: warning: exported function ForAtomicDuration should have comment or be unexported (golint)
    • Line 20: warning: exported method AtomicDuration.CompareAndSwap should have comment or be unexported (golint)
    • Line 24: warning: exported method AtomicDuration.Load should have comment or be unexported (golint)
    • Line 28: warning: exported method AtomicDuration.Set should have comment or be unexported (golint)
    • go-zero/core/syncx/spinlock.go
    • Line 8: warning: exported type SpinLock should have comment or be unexported (golint)
    • Line 12: warning: exported method SpinLock.Lock should have comment or be unexported (golint)
    • Line 18: warning: exported method SpinLock.TryLock should have comment or be unexported (golint)
    • Line 22: warning: exported method SpinLock.Unlock should have comment or be unexported (golint)
    • go-zero/core/iox/bufferpool.go
    • Line 8: warning: exported type BufferPool should have comment or be unexported (golint)
    • Line 13: warning: exported function NewBufferPool should have comment or be unexported (golint)
    • Line 24: warning: exported method BufferPool.Get should have comment or be unexported (golint)
    • Line 30: warning: exported method BufferPool.Put should have comment or be unexported (golint)
    • go-zero/core/queue/multipusher.go
    • Line 5: warning: exported type MultiPusher should have comment or be unexported (golint)
    • Line 10: warning: exported function NewMultiPusher should have comment or be unexported (golint)
    • Line 17: warning: exported method MultiPusher.Name should have comment or be unexported (golint)
    • Line 21: warning: exported method MultiPusher.Push should have comment or be unexported (golint)
    • go-zero/core/stores/sqlc/cachedsql.go
    • Line 18: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 26: warning: exported type ExecFn should have comment or be unexported (golint)
    • Line 27: warning: exported type IndexQueryFn should have comment or be unexported (golint)
    • Line 28: warning: exported type PrimaryQueryFn should have comment or be unexported (golint)
    • Line 29: warning: exported type QueryFn should have comment or be unexported (golint)
    • Line 31: warning: exported type CachedConn should have comment or be unexported (golint)
    • Line 37: warning: exported function NewNodeConn should have comment or be unexported (golint)
    • Line 44: warning: exported function NewConn should have comment or be unexported (golint)
    • Line 51: warning: exported method CachedConn.DelCache should have comment or be unexported (golint)
    • Line 55: warning: exported method CachedConn.GetCache should have comment or be unexported (golint)
    • Line 59: warning: exported method CachedConn.Exec should have comment or be unexported (golint)
    • Line 72: warning: exported method CachedConn.ExecNoCache should have comment or be unexported (golint)
    • Line 76: warning: exported method CachedConn.QueryRow should have comment or be unexported (golint)
    • Line 82: warning: exported method CachedConn.QueryRowIndex should have comment or be unexported (golint)
    • Line 107: warning: exported method CachedConn.QueryRowNoCache should have comment or be unexported (golint)
    • Line 116: warning: exported method CachedConn.SetCache should have comment or be unexported (golint)
    • Line 120: warning: exported method CachedConn.Transact should have comment or be unexported (golint)
    • go-zero/core/breaker/breakers.go
    • Line 10: warning: exported function Do should have comment or be unexported (golint)
    • Line 16: warning: exported function DoWithAcceptable should have comment or be unexported (golint)
    • Line 22: warning: exported function DoWithFallback should have comment or be unexported (golint)
    • Line 28: warning: exported function DoWithFallbackAcceptable should have comment or be unexported (golint)
    • Line 35: warning: exported function GetBreaker should have comment or be unexported (golint)
    • Line 51: warning: exported function NoBreakFor should have comment or be unexported (golint)
    • go-zero/core/mapping/utils.go
    • Line 48: warning: exported function Deref should have comment or be unexported (golint)
    • Line 56: warning: exported function Repr should have comment or be unexported (golint)
    • Line 112: warning: exported function ValidatePtr should have comment or be unexported (golint)
    • Line 129: 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 135: 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 141: 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 181: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 188: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 198: 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)
    • go-zero/core/bloom/bloom.go
    • Line 32: warning: exported var ErrTooLargeOffset should have comment or be unexported (golint)
    • Line 35: warning: exported type BitSetProvider should have comment or be unexported (golint)
    • Line 40: warning: exported type BloomFilter should have comment or be unexported (golint)
    • Line 60: warning: exported method BloomFilter.Add should have comment or be unexported (golint)
    • Line 69: warning: exported method BloomFilter.Exists should have comment or be unexported (golint)
    • Line 135: 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 158: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/trace/span.go
    • Line 25: warning: exported type Span should have comment or be unexported (golint)
    • Line 64: warning: exported method Span.Finish should have comment or be unexported (golint)
    • Line 67: warning: exported method Span.Follow should have comment or be unexported (golint)
    • Line 81: warning: exported method Span.Fork should have comment or be unexported (golint)
    • Line 95: warning: exported method Span.SpanId should have comment or be unexported (golint)
    • Line 99: warning: exported method Span.TraceId should have comment or be unexported (golint)
    • Line 103: warning: exported method Span.Visit should have comment or be unexported (golint)
    • Line 132: warning: exported function StartClientSpan should have comment or be unexported (golint)
    • Line 140: warning: exported function StartServerSpan should have comment or be unexported (golint)
    • go-zero/core/codec/rsa.go
    • Line 14: warning: exported var ErrPrivateKey should have comment or be unexported (golint)
    • Line 20: warning: exported type RsaDecrypter should have comment or be unexported (golint)
    • Line 25: warning: exported type RsaEncrypter should have comment or be unexported (golint)
    • Line 44: warning: exported function NewRsaDecrypter should have comment or be unexported (golint)
    • Line 87: warning: exported function NewRsaEncrypter should have comment or be unexported (golint)
    • go-zero/core/prof/profilecenter.go
    • Line 16: warning: exported type Slot should have comment or be unexported (golint)
    • Line 23: warning: exported type ProfileCenter should have comment or be unexported (golint)
    • Line 86: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/stores/sqlx/orm.go
    • Line 14: warning: exported var ErrNotMatchDestination should have comment or be unexported (golint)
    • Line 110: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 139: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 149: 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 181: 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 212: 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 215: 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 225: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/queue/producer.go
    • Line 4: warning: exported type Producer should have comment or be unexported (golint)
    • Line 9: warning: exported type ProduceListener should have comment or be unexported (golint)
    • Line 14: warning: exported type ProducerFactory should have comment or be unexported (golint)
    • go-zero/core/stores/redis/redis.go
    • Line 15: warning: exported const ClusterType should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var ErrNilNode should have comment or be unexported (golint)
    • Line 28: warning: exported type Pair should have comment or be unexported (golint)
    • Line 33: warning: comment on exported type Redis should be of the form "Redis ..." (with optional leading article) (golint)
    • Line 41: warning: exported type RedisNode should have comment or be unexported (golint)
    • Line 45: warning: exported type Pipeliner should have comment or be unexported (golint)
    • Line 50: warning: exported type IntCmd should have comment or be unexported (golint)
    • Line 51: warning: exported type FloatCmd should have comment or be unexported (golint)
    • Line 54: warning: exported function NewRedis should have comment or be unexported (golint)
    • Line 68: warning: comment on exported method Redis.Blpop should be of the form "Blpop ..." (golint)
    • Line 82: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 87: warning: exported method Redis.BlpopEx should have comment or be unexported (golint)
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 104: warning: exported method Redis.Del should have comment or be unexported (golint)
    • Line 113: 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 122: warning: exported method Redis.Eval should have comment or be unexported (golint)
    • Line 136: warning: exported method Redis.Exists should have comment or be unexported (golint)
    • Line 145: 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 154: warning: exported method Redis.Expire should have comment or be unexported (golint)
    • Line 165: warning: exported method Redis.Expireat should have comment or be unexported (golint)
    • Line 176: warning: exported method Redis.Get should have comment or be unexported (golint)
    • Line 195: warning: exported method Redis.GetBit should have comment or be unexported (golint)
    • Line 204: 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 213: warning: exported method Redis.Hdel should have comment or be unexported (golint)
    • Line 222: 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 231: warning: exported method Redis.Hexists should have comment or be unexported (golint)
    • Line 245: warning: exported method Redis.Hget should have comment or be unexported (golint)
    • Line 259: warning: exported method Redis.Hgetall should have comment or be unexported (golint)
    • Line 273: warning: exported method Redis.Hincrby should have comment or be unexported (golint)
    • Line 282: 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 291: warning: exported method Redis.Hkeys should have comment or be unexported (golint)
    • Line 305: warning: exported method Redis.Hlen should have comment or be unexported (golint)
    • Line 314: 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 323: warning: exported method Redis.Hmget should have comment or be unexported (golint)
    • Line 332: 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 341: warning: exported method Redis.Hset should have comment or be unexported (golint)
    • Line 352: warning: exported method Redis.Hsetnx should have comment or be unexported (golint)
    • Line 366: warning: exported method Redis.Hmset should have comment or be unexported (golint)
    • Line 382: warning: exported method Redis.Hvals should have comment or be unexported (golint)
    • Line 396: warning: exported method Redis.Incr should have comment or be unexported (golint)
    • Line 410: warning: exported method Redis.Incrby should have comment or be unexported (golint)
    • Line 424: warning: exported method Redis.Keys should have comment or be unexported (golint)
    • Line 438: warning: exported method Redis.Llen should have comment or be unexported (golint)
    • Line 447: 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 456: warning: exported method Redis.Lpop should have comment or be unexported (golint)
    • Line 470: warning: exported method Redis.Lpush should have comment or be unexported (golint)
    • Line 479: 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 488: warning: exported method Redis.Lrange should have comment or be unexported (golint)
    • Line 502: warning: exported method Redis.Lrem should have comment or be unexported (golint)
    • Line 511: 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 520: warning: exported method Redis.Mget should have comment or be unexported (golint)
    • Line 529: 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 538: warning: exported method Redis.Persist should have comment or be unexported (golint)
    • Line 552: warning: exported method Redis.Pfadd should have comment or be unexported (golint)
    • Line 561: 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 570: warning: exported method Redis.Pfcount should have comment or be unexported (golint)
    • Line 584: warning: exported method Redis.Pfmerge should have comment or be unexported (golint)
    • Line 596: warning: exported method Redis.Ping should have comment or be unexported (golint)
    • Line 608: 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 617: warning: exported method Redis.Pipelined should have comment or be unexported (golint)
    • Line 632: warning: exported method Redis.Rpush should have comment or be unexported (golint)
    • Line 641: 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 650: warning: exported method Redis.Sadd should have comment or be unexported (golint)
    • Line 659: 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 668: warning: exported method Redis.Scan should have comment or be unexported (golint)
    • Line 682: warning: exported method Redis.SetBit should have comment or be unexported (golint)
    • Line 694: warning: exported method Redis.Sscan should have comment or be unexported (golint)
    • Line 708: warning: exported method Redis.Scard should have comment or be unexported (golint)
    • Line 722: warning: exported method Redis.Set should have comment or be unexported (golint)
    • Line 733: warning: exported method Redis.Setex should have comment or be unexported (golint)
    • Line 744: warning: exported method Redis.Setnx should have comment or be unexported (golint)
    • Line 758: warning: exported method Redis.SetnxEx should have comment or be unexported (golint)
    • Line 772: warning: exported method Redis.Sismember should have comment or be unexported (golint)
    • Line 785: warning: exported method Redis.Srem should have comment or be unexported (golint)
    • Line 794: 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 803: warning: exported method Redis.Smembers should have comment or be unexported (golint)
    • Line 817: warning: exported method Redis.Spop should have comment or be unexported (golint)
    • Line 831: warning: exported method Redis.Srandmember should have comment or be unexported (golint)
    • Line 845: warning: exported method Redis.Sunion should have comment or be unexported (golint)
    • Line 859: warning: exported method Redis.Sunionstore should have comment or be unexported (golint)
    • Line 868: 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 877: warning: exported method Redis.Sdiff should have comment or be unexported (golint)
    • Line 891: warning: exported method Redis.Sdiffstore should have comment or be unexported (golint)
    • Line 900: 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 909: warning: exported method Redis.Ttl should have comment or be unexported (golint)
    • Line 918: 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 927: warning: exported method Redis.Zadd should have comment or be unexported (golint)
    • Line 939: 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 948: warning: exported method Redis.Zadds should have comment or be unexported (golint)
    • Line 963: 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 972: warning: exported method Redis.Zcard should have comment or be unexported (golint)
    • Line 981: 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 990: warning: exported method Redis.Zcount should have comment or be unexported (golint)
    • Line 1000: 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 1009: warning: exported method Redis.Zincrby should have comment or be unexported (golint)
    • Line 1018: 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 1027: warning: exported method Redis.Zscore should have comment or be unexported (golint)
    • Line 1036: 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 1045: warning: exported method Redis.Zrank should have comment or be unexported (golint)
    • Line 1059: warning: exported method Redis.Zrem should have comment or be unexported (golint)
    • Line 1068: 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 1077: warning: exported method Redis.Zremrangebyscore should have comment or be unexported (golint)
    • Line 1087: 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 1096: warning: exported method Redis.Zremrangebyrank should have comment or be unexported (golint)
    • Line 1105: 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 1114: warning: exported method Redis.Zrange should have comment or be unexported (golint)
    • Line 1128: warning: exported method Redis.ZrangeWithScores should have comment or be unexported (golint)
    • Line 1137: 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 1146: warning: exported method Redis.ZRevRangeWithScores should have comment or be unexported (golint)
    • Line 1155: 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 1164: warning: exported method Redis.ZrangebyscoreWithScores should have comment or be unexported (golint)
    • Line 1176: 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 1185: warning: exported method Redis.ZrangebyscoreWithScoresAndLimit should have comment or be unexported (golint)
    • Line 1204: 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 1213: warning: exported method Redis.Zrevrange should have comment or be unexported (golint)
    • Line 1227: warning: exported method Redis.ZrevrangebyscoreWithScores should have comment or be unexported (golint)
    • Line 1239: 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 1248: warning: exported method Redis.ZrevrangebyscoreWithScoresAndLimit should have comment or be unexported (golint)
    • Line 1267: 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)
    • go-zero/core/proc/process.go
    • Line 18: warning: exported function Pid should have comment or be unexported (golint)
    • Line 22: warning: exported function ProcessName should have comment or be unexported (golint)
    • go-zero/core/service/serviceconf.go
    • Line 13: warning: exported const DevMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type ServiceConf should have comment or be unexported (golint)
    • Line 27: warning: exported method ServiceConf.MustSetUp should have comment or be unexported (golint)
    • Line 33: warning: exported method ServiceConf.SetUp should have comment or be unexported (golint)
    • go-zero/core/stores/mongo/bulkinserter.go
    • Line 17: warning: exported type ResultHandler should have comment or be unexported (golint)
    • Line 19: warning: exported type BulkInserter should have comment or be unexported (golint)
    • Line 25: warning: exported function NewBulkInserter should have comment or be unexported (golint)
    • Line 38: warning: exported method BulkInserter.Flush should have comment or be unexported (golint)
    • Line 42: warning: exported method BulkInserter.Insert should have comment or be unexported (golint)
    • Line 46: warning: exported method BulkInserter.SetResultHandler should have comment or be unexported (golint)
    • go-zero/core/lang/lang.go
    • Line 3: warning: exported var Placeholder should have comment or be unexported (golint)
    • Line 6: warning: exported type GenericType should have comment or be unexported (golint)
    • Line 7: warning: exported type PlaceholderType should have comment or be unexported (golint)
    • go-zero/core/threading/routines.go
    • Line 11: warning: exported function GoSafe should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function RoutineId should be of the form "RoutineId ..." (golint)
    • Line 27: warning: exported function RunSafe should have comment or be unexported (golint)
    • go-zero/core/mathx/proba.go
    • Line 9: warning: exported type Proba should have comment or be unexported (golint)
    • Line 15: warning: exported function NewProba should have comment or be unexported (golint)
    • Line 21: warning: exported method Proba.TrueOnProba should have comment or be unexported (golint)
    • go-zero/core/stores/kv/store.go
    • Line 13: warning: exported var ErrNoRedisNode should have comment or be unexported (golint)
    • Line 16: warning: exported type Store should have comment or be unexported (golint)
    • Line 83: warning: exported function NewStore should have comment or be unexported (golint)
    • Line 650: 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)
    • go-zero/core/timex/relativetime.go
    • Line 8: warning: exported function Now should have comment or be unexported (golint)
    • Line 12: warning: exported function Since should have comment or be unexported (golint)
    • Line 16: warning: exported function Time should have comment or be unexported (golint)
    • go-zero/core/fx/retry.go
    • Line 8: warning: exported type RetryOption should have comment or be unexported (golint)
    • Line 15: warning: exported function DoWithRetries should have comment or be unexported (golint)
    • Line 33: warning: exported function WithRetries should have comment or be unexported (golint)
    • go-zero/core/mapping/yamlunmarshaler.go
    • Line 16: warning: exported var ErrUnsupportedType should have comment or be unexported (golint)
    • Line 21: warning: exported function UnmarshalYamlBytes should have comment or be unexported (golint)
    • Line 25: warning: exported function UnmarshalYamlReader should have comment or be unexported (golint)
    • Line 37: 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)
    • go-zero/core/errorx/atomicerror.go
    • Line 5: warning: exported type AtomicError should have comment or be unexported (golint)
    • Line 10: warning: exported method AtomicError.Set should have comment or be unexported (golint)
    • Line 16: warning: exported method AtomicError.Load should have comment or be unexported (golint)
    • go-zero/core/fx/timeout.go
    • Line 9: warning: exported var ErrCanceled should have comment or be unexported (golint)
    • Line 13: warning: exported type FxOption should have comment or be unexported (golint)
    • Line 15: warning: exported function DoWithTimeout should have comment or be unexported (golint)
    • Line 45: warning: exported function WithContext should have comment or be unexported (golint)
    • go-zero/core/jsontype/time.go
    • Line 10: warning: exported type MilliTime should have comment or be unexported (golint)
    • Line 14: warning: exported method MilliTime.MarshalJSON should have comment or be unexported (golint)
    • Line 18: warning: exported method MilliTime.UnmarshalJSON should have comment or be unexported (golint)
    • Line 22: 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 28: warning: exported method MilliTime.GetBSON should have comment or be unexported (golint)
    • Line 32: warning: exported method MilliTime.SetBSON should have comment or be unexported (golint)
    • Line 36: warning: exported method MilliTime.Milli should have comment or be unexported (golint)
    • go-zero/core/syncx/onceguard.go
    • Line 5: warning: exported type OnceGuard should have comment or be unexported (golint)
    • Line 9: warning: exported method OnceGuard.Taken should have comment or be unexported (golint)
    • Line 13: warning: exported method OnceGuard.Take should have comment or be unexported (golint)
    • go-zero/core/collection/fifo.go
    • Line 5: warning: exported type Queue should have comment or be unexported (golint)
    • Line 14: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 21: warning: exported method Queue.Empty should have comment or be unexported (golint)
    • Line 29: warning: exported method Queue.Put should have comment or be unexported (golint)
    • Line 47: warning: exported method Queue.Take should have comment or be unexported (golint)
    • go-zero/core/syncx/atomicbool.go
    • Line 5: warning: exported type AtomicBool should have comment or be unexported (golint)
    • Line 7: warning: exported function NewAtomicBool should have comment or be unexported (golint)
    • Line 11: warning: exported function ForAtomicBool should have comment or be unexported (golint)
    • Line 17: warning: exported method AtomicBool.CompareAndSwap should have comment or be unexported (golint)
    • Line 28: warning: exported method AtomicBool.Set should have comment or be unexported (golint)
    • Line 36: warning: exported method AtomicBool.True should have comment or be unexported (golint)
    • go-zero/core/trace/propagator.go
    • Line 10: warning: exported const HttpFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Propagator should have comment or be unexported (golint)
    • Line 32: 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 40: 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 48: 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 56: 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 61: warning: exported function Extract should have comment or be unexported (golint)
    • Line 74: warning: exported function Inject should have comment or be unexported (golint)
    • go-zero/core/breaker/breaker.go
    • Line 17: warning: exported const StateClosed should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type State should have comment or be unexported (golint)
    • Line 31: warning: exported type Acceptable should have comment or be unexported (golint)
    • Line 33: warning: exported type Breaker should have comment or be unexported (golint)
    • Line 70: warning: exported type BreakerOption should have comment or be unexported (golint)
    • Line 72: warning: exported type Promise should have comment or be unexported (golint)
    • Line 98: warning: exported function NewBreaker should have comment or be unexported (golint)
    • Line 136: warning: exported function WithName should have comment or be unexported (golint)
    • go-zero/core/mathx/int.go
    • Line 3: warning: exported function MaxInt should have comment or be unexported (golint)
    • Line 6: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 11: warning: exported function MinInt should have comment or be unexported (golint)
    • Line 14: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/stores/redis/redislock.go
    • Line 31: warning: exported type RedisLock should have comment or be unexported (golint)
    • Line 42: warning: exported function NewRedisLock should have comment or be unexported (golint)
    • Line 50: warning: exported method RedisLock.Acquire should have comment or be unexported (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 72: warning: exported method RedisLock.Release should have comment or be unexported (golint)
    • Line 80: 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 85: warning: exported method RedisLock.SetExpire should have comment or be unexported (golint)
    • go-zero/core/stores/mongoc/cachedmodel.go
    • Line 13: warning: exported type Model should have comment or be unexported (golint)
    • Line 19: warning: exported function MustNewNodeModel should have comment or be unexported (golint)
    • Line 28: warning: exported function MustNewModel should have comment or be unexported (golint)
    • Line 37: warning: exported function NewNodeModel should have comment or be unexported (golint)
    • Line 44: warning: exported function NewModel should have comment or be unexported (golint)
    • Line 51: warning: exported method Model.Count should have comment or be unexported (golint)
    • Line 57: warning: exported method Model.DelCache should have comment or be unexported (golint)
    • Line 61: warning: exported method Model.GetCache should have comment or be unexported (golint)
    • Line 65: warning: exported method Model.GetCollection should have comment or be unexported (golint)
    • Line 69: warning: exported method Model.FindAllNoCache should have comment or be unexported (golint)
    • Line 75: warning: exported method Model.FindOne should have comment or be unexported (golint)
    • Line 81: warning: exported method Model.FindOneNoCache should have comment or be unexported (golint)
    • Line 87: warning: exported method Model.FindOneId should have comment or be unexported (golint)
    • Line 93: warning: exported method Model.FindOneIdNoCache should have comment or be unexported (golint)
    • Line 99: warning: exported method Model.Insert should have comment or be unexported (golint)
    • Line 105: warning: exported method Model.Pipe should have comment or be unexported (golint)
    • Line 111: warning: exported method Model.Remove should have comment or be unexported (golint)
    • Line 117: warning: exported method Model.RemoveNoCache should have comment or be unexported (golint)
    • Line 123: warning: exported method Model.RemoveAll should have comment or be unexported (golint)
    • Line 129: warning: exported method Model.RemoveAllNoCache should have comment or be unexported (golint)
    • Line 135: warning: exported method Model.RemoveId should have comment or be unexported (golint)
    • Line 141: warning: exported method Model.RemoveIdNoCache should have comment or be unexported (golint)
    • Line 147: warning: exported method Model.SetCache should have comment or be unexported (golint)
    • Line 151: warning: exported method Model.Update should have comment or be unexported (golint)
    • Line 157: warning: exported method Model.UpdateNoCache should have comment or be unexported (golint)
    • Line 163: warning: exported method Model.UpdateId should have comment or be unexported (golint)
    • Line 169: warning: exported method Model.UpdateIdNoCache should have comment or be unexported (golint)
    • Line 175: warning: exported method Model.Upsert should have comment or be unexported (golint)
    • Line 181: warning: exported method Model.UpsertNoCache should have comment or be unexported (golint)
    • go-zero/core/executors/bulkexecutor.go
    • Line 8: warning: exported type BulkOption should have comment or be unexported (golint)
    • Line 10: warning: exported type BulkExecutor should have comment or be unexported (golint)
    • Line 21: warning: exported function NewBulkExecutor should have comment or be unexported (golint)
    • Line 39: warning: exported method BulkExecutor.Add should have comment or be unexported (golint)
    • Line 44: warning: exported method BulkExecutor.Flush should have comment or be unexported (golint)
    • Line 48: warning: exported method BulkExecutor.Wait should have comment or be unexported (golint)
    • Line 52: warning: exported function WithBulkTasks should have comment or be unexported (golint)
    • Line 58: warning: exported function WithBulkInterval should have comment or be unexported (golint)
    • go-zero/core/mapping/fieldoptions.go
    • Line 38: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 97: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/iox/read.go
    • Line 19: warning: exported type TextReadOption should have comment or be unexported (golint)
    • Line 22: warning: comment on exported function DupReadCloser should be of the form "DupReadCloser ..." (golint)
    • Line 30: warning: exported function KeepSpace should have comment or be unexported (golint)
    • Line 52: warning: exported function ReadText should have comment or be unexported (golint)
    • Line 61: warning: exported function ReadTextLines should have comment or be unexported (golint)
    • Line 93: warning: exported function WithoutBlank should have comment or be unexported (golint)
    • Line 99: warning: exported function OmitWithPrefix should have comment or be unexported (golint)
    • go-zero/core/logx/rotatelogger.go
    • Line 29: warning: exported var ErrLogFileClosed should have comment or be unexported (golint)
    • Line 32: warning: exported type RotateRule should have comment or be unexported (golint)
    • Line 39: warning: exported type RotateLogger should have comment or be unexported (golint)
    • Line 53: warning: exported type DailyRotateRule should have comment or be unexported (golint)
    • Line 62: warning: exported function DefaultRotateRule should have comment or be unexported (golint)
    • Line 72: warning: exported method DailyRotateRule.BackupFileName should have comment or be unexported (golint)
    • Line 76: warning: exported method DailyRotateRule.MarkRotated should have comment or be unexported (golint)
    • Line 80: warning: exported method DailyRotateRule.OutdatedFiles should have comment or be unexported (golint)
    • Line 116: warning: exported method DailyRotateRule.ShallRotate should have comment or be unexported (golint)
    • Line 120: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 136: warning: exported method RotateLogger.Close should have comment or be unexported (golint)
    • Line 166: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/queue/consumer.go
    • Line 4: warning: exported type Consumer should have comment or be unexported (golint)
    • Line 9: warning: exported type ConsumerFactory should have comment or be unexported (golint)
    • go-zero/core/mapping/unmarshaler.go
    • Line 35: warning: exported type Unmarshaler should have comment or be unexported (golint)
    • Line 45: warning: exported type UnmarshalOption should have comment or be unexported (golint)
    • Line 52: warning: exported function NewUnmarshaler should have comment or be unexported (golint)
    • Line 64: warning: exported function UnmarshalKey should have comment or be unexported (golint)
    • Line 68: warning: exported method Unmarshaler.Unmarshal should have comment or be unexported (golint)
    • Line 72: warning: exported method Unmarshaler.UnmarshalValuer should have comment or be unexported (golint)
    • Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 182: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 317: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 327: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 589: warning: exported function WithStringValues should have comment or be unexported (golint)
    • go-zero/core/stores/internal/cachenode.go
    • Line 40: warning: exported function NewCacheNode should have comment or be unexported (golint)
    • Line 72: 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 178: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/load/sheddergroup.go
    • Line 9: warning: exported type ShedderGroup should have comment or be unexported (golint)
    • Line 14: warning: exported function NewShedderGroup should have comment or be unexported (golint)
    • Line 21: warning: exported method ShedderGroup.GetShedder should have comment or be unexported (golint)
    • go-zero/core/executors/lessexecutor.go
    • Line 10: warning: exported type LessExecutor should have comment or be unexported (golint)
    • Line 15: warning: exported function NewLessExecutor should have comment or be unexported (golint)
    • Line 22: warning: exported method LessExecutor.DoOrDiscard should have comment or be unexported (golint)
    • go-zero/core/errorx/batcherror.go
    • Line 6: warning: exported type BatchError should have comment or be unexported (golint)
    • Line 13: warning: exported method BatchError.Add should have comment or be unexported (golint)
    • Line 19: warning: exported method BatchError.Err should have comment or be unexported (golint)
    • Line 30: warning: exported method BatchError.NotNil should have comment or be unexported (golint)
    • go-zero/core/logx/logs.go
    • Line 59: warning: exported var ErrLogPathNotSet should have comment or be unexported (golint)
    • Line 91: warning: exported type LogOption should have comment or be unexported (golint)
    • Line 93: warning: exported type Logger should have comment or be unexported (golint)
    • Line 103: warning: exported function MustSetup should have comment or be unexported (golint)
    • Line 123: warning: exported function Close should have comment or be unexported (golint)
    • Line 167: warning: exported function Disable should have comment or be unexported (golint)
    • Line 180: warning: exported function Error should have comment or be unexported (golint)
    • Line 184: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 188: warning: exported function ErrorCaller should have comment or be unexported (golint)
    • Line 192: warning: exported function ErrorCallerf should have comment or be unexported (golint)
    • Line 196: warning: exported function ErrorStack should have comment or be unexported (golint)
    • Line 201: warning: exported function ErrorStackf should have comment or be unexported (golint)
    • Line 206: warning: exported function Info should have comment or be unexported (golint)
    • Line 210: warning: exported function Infof should have comment or be unexported (golint)
    • Line 214: warning: exported function Must should have comment or be unexported (golint)
    • Line 223: warning: exported function SetLevel should have comment or be unexported (golint)
    • Line 227: warning: exported function Severe should have comment or be unexported (golint)
    • Line 231: warning: exported function Severef should have comment or be unexported (golint)
    • Line 235: warning: exported function Slow should have comment or be unexported (golint)
    • Line 239: warning: exported function Slowf should have comment or be unexported (golint)
    • Line 243: warning: exported function Stat should have comment or be unexported (golint)
    • Line 247: warning: exported function Statf should have comment or be unexported (golint)
    • Line 251: warning: exported function WithCooldownMillis should have comment or be unexported (golint)
    • Line 257: warning: exported function WithKeepDays should have comment or be unexported (golint)
    • Line 263: warning: exported function WithGzip should have comment or be unexported (golint)
    • go-zero/core/stat/alert.go
    • Line 39: warning: exported function Report should have comment or be unexported (golint)
    • Line 65: warning: exported function SetReporter should have comment or be unexported (golint)
    • go-zero/core/mathx/unstable.go
    • Line 9: warning: exported type Unstable should have comment or be unexported (golint)
    • Line 15: warning: exported function NewUnstable should have comment or be unexported (golint)
    • Line 29: warning: exported method Unstable.AroundDuration should have comment or be unexported (golint)
    • Line 36: warning: exported method Unstable.AroundInt should have comment or be unexported (golint)
    • go-zero/core/logx/lesslogger.go
    • Line 3: warning: exported type LessLogger should have comment or be unexported (golint)
    • Line 7: warning: exported function NewLessLogger should have comment or be unexported (golint)
    • Line 19: warning: exported method LessLogger.Errorf should have comment or be unexported (golint)
    • go-zero/core/conf/config.go
    • Line 18: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 28: warning: exported function LoadConfigFromJsonBytes should have comment or be unexported (golint)
    • Line 32: warning: exported function LoadConfigFromYamlBytes should have comment or be unexported (golint)
    • Line 36: warning: exported function MustLoad should have comment or be unexported (golint)
    • go-zero/core/timex/ticker.go
    • Line 11: warning: exported type Ticker should have comment or be unexported (golint)
    • Line 16: warning: exported type FakeTicker should have comment or be unexported (golint)
    • Line 33: warning: exported function NewTicker should have comment or be unexported (golint)
    • Line 43: warning: exported function NewFakeTicker should have comment or be unexported (golint)
    • go-zero/core/threading/taskrunner.go
    • Line 8: warning: exported type TaskRunner should have comment or be unexported (golint)
    • Line 12: warning: exported function NewTaskRunner should have comment or be unexported (golint)
    • Line 18: warning: exported method TaskRunner.Schedule should have comment or be unexported (golint)
    • go-zero/core/stores/mongo/model.go
    • Line 15: warning: exported type Option should have comment or be unexported (golint)
    • Line 17: warning: exported type Model should have comment or be unexported (golint)
    • Line 25: warning: exported function MustNewModel should have comment or be unexported (golint)
    • Line 34: warning: exported function NewModel should have comment or be unexported (golint)
    • Line 48: warning: exported method Model.Find should have comment or be unexported (golint)
    • Line 54: warning: exported method Model.FindId should have comment or be unexported (golint)
    • Line 60: warning: exported method Model.GetCollection should have comment or be unexported (golint)
    • Line 64: warning: exported method Model.Insert should have comment or be unexported (golint)
    • Line 70: warning: exported method Model.Pipe should have comment or be unexported (golint)
    • Line 76: warning: exported method Model.PutSession should have comment or be unexported (golint)
    • Line 80: warning: exported method Model.Remove should have comment or be unexported (golint)
    • Line 86: warning: exported method Model.RemoveAll should have comment or be unexported (golint)
    • Line 92: warning: exported method Model.RemoveId should have comment or be unexported (golint)
    • Line 98: warning: exported method Model.TakeSession should have comment or be unexported (golint)
    • Line 102: warning: exported method Model.Update should have comment or be unexported (golint)
    • Line 108: warning: exported method Model.UpdateId should have comment or be unexported (golint)
    • Line 114: warning: exported method Model.Upsert should have comment or be unexported (golint)
    • Line 160: warning: exported function WithTimeout should have comment or be unexported (golint)
    • go-zero/core/cmdline/input.go
    • Line 10: warning: exported function EnterToContinue should have comment or be unexported (golint)
    • Line 15: warning: exported function ReadLine should have comment or be unexported (golint)
    • go-zero/core/metric/counter.go
    • Line 9: warning: exported type CounterVecOpts should have comment or be unexported (golint)
    • Line 11: warning: exported type CounterVec should have comment or be unexported (golint)
    • Line 22: warning: exported function NewCounterVec should have comment or be unexported (golint)
    • go-zero/core/filex/file.go
    • Line 10: warning: exported function FirstLine should have comment or be unexported (golint)
    • Line 20: warning: exported function LastLine should have comment or be unexported (golint)
    • go-zero/core/stores/sqlx/tx.go
    • Line 29: 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 63: 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)
    • go-zero/core/load/sheddingstat.go
    • Line 12: warning: exported type SheddingStat should have comment or be unexported (golint)
    • Line 26: warning: exported function NewSheddingStat should have comment or be unexported (golint)
    • Line 34: warning: exported method SheddingStat.IncrementTotal should have comment or be unexported (golint)
    • Line 38: warning: exported method SheddingStat.IncrementPass should have comment or be unexported (golint)
    • Line 42: warning: exported method SheddingStat.IncrementDrop should have comment or be unexported (golint)
    • go-zero/core/collection/cache.go
    • Line 26: warning: exported type CacheOption should have comment or be unexported (golint)
    • Line 28: warning: exported type Cache should have comment or be unexported (golint)
    • Line 42: warning: exported function NewCache should have comment or be unexported (golint)
    • Line 76: warning: exported method Cache.Del should have comment or be unexported (golint)
    • Line 84: warning: exported method Cache.Get should have comment or be unexported (golint)
    • Line 100: warning: exported method Cache.Set should have comment or be unexported (golint)
    • Line 115: warning: exported method Cache.Take should have comment or be unexported (golint)
    • Line 132: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 152: warning: exported function WithLimit should have comment or be unexported (golint)
    • Line 160: warning: exported function WithName should have comment or be unexported (golint)
    • go-zero/core/stat/remotewriter.go
    • Line 15: warning: exported var ErrWriteFailed should have comment or be unexported (golint)
    • Line 17: warning: exported type RemoteWriter should have comment or be unexported (golint)
    • Line 21: warning: exported function NewRemoteWriter should have comment or be unexported (golint)
    • go-zero/core/trace/carrier.go
    • Line 9: warning: exported var ErrInvalidCarrier should have comment or be unexported (golint)
    • Line 12: warning: exported type Carrier should have comment or be unexported (golint)
    • Line 33: 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)
    • go-zero/core/stores/internal/cachestat.go
    • Line 12: warning: exported type CacheStat should have comment or be unexported (golint)
    • Line 22: warning: exported function NewCacheStat should have comment or be unexported (golint)
    • Line 31: warning: exported method CacheStat.IncrementTotal should have comment or be unexported (golint)
    • Line 35: warning: exported method CacheStat.IncrementHit should have comment or be unexported (golint)
    • Line 39: warning: exported method CacheStat.IncrementMiss should have comment or be unexported (golint)
    • Line 43: warning: exported method CacheStat.IncrementDbFails should have comment or be unexported (golint)
    • go-zero/core/collection/safemap.go
    • Line 21: warning: exported function NewSafeMap should have comment or be unexported (golint)
    • Line 28: warning: exported method SafeMap.Del should have comment or be unexported (golint)
    • Line 56: warning: exported method SafeMap.Get should have comment or be unexported (golint)
    • Line 62: 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 68: warning: exported method SafeMap.Set should have comment or be unexported (golint)
    • Line 86: warning: exported method SafeMap.Size should have comment or be unexported (golint)
    • go-zero/core/prof/profiler.go
    • Line 6: warning: exported type ProfilePoint should have comment or be unexported (golint)
    • Line 10: warning: exported type Profiler should have comment or be unexported (golint)
    • Line 15: warning: exported type RealProfiler should have comment or be unexported (golint)
    • Line 17: warning: exported type NullProfiler should have comment or be unexported (golint)
    • Line 22: warning: exported function EnableProfiling should have comment or be unexported (golint)
    • Line 26: warning: exported function Start should have comment or be unexported (golint)
    • Line 30: warning: exported function Report should have comment or be unexported (golint)
    • Line 38: warning: exported method RealProfiler.Start should have comment or be unexported (golint)
    • Line 44: warning: exported method RealProfiler.Report should have comment or be unexported (golint)
    • Line 53: warning: exported method NullProfiler.Start should have comment or be unexported (golint)
    • Line 57: warning: exported method NullProfiler.Report should have comment or be unexported (golint)
    • go-zero/core/stringx/strings.go
    • Line 10: warning: exported var ErrInvalidStartPosition should have comment or be unexported (golint)
    • Line 14: warning: exported function Contains should have comment or be unexported (golint)
    • Line 24: warning: exported function Filter should have comment or be unexported (golint)
    • Line 39: warning: exported function HasEmpty should have comment or be unexported (golint)
    • Line 49: warning: exported function NotEmpty should have comment or be unexported (golint)
    • Line 53: warning: exported function Remove should have comment or be unexported (golint)
    • Line 70: warning: exported function Reverse should have comment or be unexported (golint)
    • Line 96: warning: exported function TakeOne should have comment or be unexported (golint)
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 104: warning: exported function TakeWithPriority should have comment or be unexported (golint)
    • Line 115: warning: exported function Union should have comment or be unexported (golint)
    • go-zero/core/threading/workergroup.go
    • Line 3: warning: exported type WorkerGroup should have comment or be unexported (golint)
    • Line 8: warning: exported function NewWorkerGroup should have comment or be unexported (golint)
    • Line 15: warning: exported method WorkerGroup.Start should have comment or be unexported (golint)
    • go-zero/core/syncx/atomicfloat64.go
    • Line 8: warning: exported type AtomicFloat64 should have comment or be unexported (golint)
    • Line 10: warning: exported function NewAtomicFloat64 should have comment or be unexported (golint)
    • Line 14: warning: exported function ForAtomicFloat64 should have comment or be unexported (golint)
    • Line 20: warning: exported method AtomicFloat64.Add should have comment or be unexported (golint)
    • Line 30: warning: exported method AtomicFloat64.CompareAndSwap should have comment or be unexported (golint)
    • Line 34: warning: exported method AtomicFloat64.Load should have comment or be unexported (golint)
    • Line 38: warning: exported method AtomicFloat64.Set should have comment or be unexported (golint)
    • go-zero/core/executors/chunkexecutor.go
    • Line 8: warning: exported type ChunkOption should have comment or be unexported (golint)
    • Line 10: warning: exported type ChunkExecutor should have comment or be unexported (golint)
    • Line 21: warning: exported function NewChunkExecutor should have comment or be unexported (golint)
    • Line 39: warning: exported method ChunkExecutor.Add should have comment or be unexported (golint)
    • Line 47: warning: exported method ChunkExecutor.Flush should have comment or be unexported (golint)
    • Line 51: warning: exported method ChunkExecutor.Wait should have comment or be unexported (golint)
    • Line 55: warning: exported function WithChunkBytes should have comment or be unexported (golint)
    • Line 61: warning: exported function WithFlushInterval should have comment or be unexported (golint)
    • go-zero/core/stores/mongo/iter.go
    • Line 1: warning: package comment should be of the form "Package mongo ..." (golint)
    • Line 10: warning: exported type Iter should have comment or be unexported (golint)
    • Line 21: warning: exported type ClosableIter should have comment or be unexported (golint)
    • Line 59: warning: exported method ClosableIter.Close should have comment or be unexported (golint)
    • go-zero/core/syncx/barrier.go
    • Line 5: warning: exported type Barrier should have comment or be unexported (golint)
    • Line 9: warning: exported method Barrier.Guard should have comment or be unexported (golint)
    • go-zero/core/syncx/pool.go
    • Line 11: warning: exported type PoolOption should have comment or be unexported (golint)
    • Line 19: warning: exported type Pool should have comment or be unexported (golint)
    • Line 31: warning: exported function NewPool should have comment or be unexported (golint)
    • Line 52: warning: exported method Pool.Get should have comment or be unexported (golint)
    • Line 78: warning: exported method Pool.Put should have comment or be unexported (golint)
    • Line 94: warning: exported function WithMaxAge should have comment or be unexported (golint)
    • go-zero/core/fx/fn.go
    • Line 23: warning: exported type FilterFunc should have comment or be unexported (golint)
    • Line 24: warning: exported type ForAllFunc should have comment or be unexported (golint)
    • Line 25: warning: exported type ForEachFunc should have comment or be unexported (golint)
    • Line 26: warning: exported type GenerateFunc should have comment or be unexported (golint)
    • Line 27: warning: exported type KeyFunc should have comment or be unexported (golint)
    • Line 28: warning: exported type LessFunc should have comment or be unexported (golint)
    • Line 29: warning: exported type MapFunc should have comment or be unexported (golint)
    • Line 30: warning: exported type Option should have comment or be unexported (golint)
    • Line 31: warning: exported type ParallelFunc should have comment or be unexported (golint)
    • Line 32: warning: exported type ReduceFunc should have comment or be unexported (golint)
    • Line 33: warning: exported type WalkFunc should have comment or be unexported (golint)
    • Line 35: warning: exported type Stream should have comment or be unexported (golint)
    • Line 153: warning: exported method Stream.Head should have comment or be unexported (golint)
    • Line 177: warning: comment on exported method Stream.Map should be of the form "Map ..." (golint)
    • Line 238: warning: exported method Stream.Tail should have comment or be unexported (golint)
    • Line 260: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/stringx/random.go
    • Line 45: warning: exported function Rand should have comment or be unexported (golint)
    • Line 49: warning: exported function RandId should have comment or be unexported (golint)
    • Line 59: warning: exported function Randn should have comment or be unexported (golint)
    • Line 77: warning: exported function Seed should have comment or be unexported (golint)
    • go-zero/core/service/servicegroup.go
    • Line 12: warning: exported type Starter should have comment or be unexported (golint)
    • Line 16: warning: exported type Stopper should have comment or be unexported (golint)
    • Line 20: warning: exported type Service should have comment or be unexported (golint)
    • Line 25: warning: exported type ServiceGroup should have comment or be unexported (golint)
    • Line 31: warning: exported function NewServiceGroup should have comment or be unexported (golint)
    • Line 37: warning: exported method ServiceGroup.Add should have comment or be unexported (golint)
    • Line 41: warning: comment on exported method ServiceGroup.Start should be of the form "Start ..." (golint)
    • Line 52: warning: exported method ServiceGroup.Stop should have comment or be unexported (golint)
    • Line 75: warning: exported function WithStart should have comment or be unexported (golint)
    • Line 81: warning: exported function WithStarter should have comment or be unexported (golint)
    • go-zero/core/hash/hash.go
    • Line 10: warning: exported function Hash should have comment or be unexported (golint)
    • Line 14: warning: exported function Md5 should have comment or be unexported (golint)
    • Line 20: warning: exported function Md5Hex should have comment or be unexported (golint)
    • go-zero/core/syncx/cond.go
    • Line 10: warning: exported type Cond should have comment or be unexported (golint)
    • Line 14: warning: exported function NewCond should have comment or be unexported (golint)
    • go-zero/core/syncx/immutableresource.go
    • Line 13: warning: exported type ImmutableResourceOption should have comment or be unexported (golint)
    • Line 15: warning: exported type ImmutableResource should have comment or be unexported (golint)
    • Line 25: warning: exported function NewImmutableResource should have comment or be unexported (golint)
    • Line 38: warning: exported method ImmutableResource.Get should have comment or be unexported (golint)
    • Line 72: warning: comment on exported function WithRefreshIntervalOnFailure should be of the form "WithRefreshIntervalOnFailure ..." (golint)
    • go-zero/core/syncx/timeoutlimit.go
    • Line 8: warning: exported var ErrTimeout should have comment or be unexported (golint)
    • Line 10: warning: exported type TimeoutLimit should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTimeoutLimit should have comment or be unexported (golint)
    • Line 22: warning: exported method TimeoutLimit.Borrow should have comment or be unexported (golint)
    • Line 40: warning: exported method TimeoutLimit.Return should have comment or be unexported (golint)
    • Line 49: warning: exported method TimeoutLimit.TryBorrow should have comment or be unexported (golint)
    • go-zero/core/utils/times.go
    • Line 10: warning: exported type ElapsedTimer should have comment or be unexported (golint)
    • Line 14: warning: exported function NewElapsedTimer should have comment or be unexported (golint)
    • Line 20: warning: exported method ElapsedTimer.Duration should have comment or be unexported (golint)
    • Line 24: warning: exported method ElapsedTimer.Elapsed should have comment or be unexported (golint)
    • Line 28: warning: exported method ElapsedTimer.ElapsedMs should have comment or be unexported (golint)
    • Line 32: warning: exported function CurrentMicros should have comment or be unexported (golint)
    • Line 36: warning: exported function CurrentMillis should have comment or be unexported (golint)
    • go-zero/core/contextx/unmarshaler_test.go
    • Line 17: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 18: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 35: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 52: warning: should not use basic type string as key in context.WithValue (golint)
    • go-zero/core/syncx/resourcemanager.go
    • Line 10: warning: exported type ResourceManager should have comment or be unexported (golint)
    • Line 16: warning: exported function NewResourceManager should have comment or be unexported (golint)
    • Line 23: warning: exported method ResourceManager.Close should have comment or be unexported (golint)
    • Line 37: warning: exported method ResourceManager.GetResource should have comment or be unexported (golint)
    • go-zero/core/mapping/valuer.go
    • Line 4: warning: exported type Valuer should have comment or be unexported (golint)
    • Line 8: warning: exported type MapValuer should have comment or be unexported (golint)
    • Line 11: warning: exported method MapValuer.Value should have comment or be unexported (golint)
    • go-zero/core/stores/cache/cacheopt.go
    • Line 9: warning: exported type Option should have comment or be unexported (golint)
    • Line 11: warning: exported function WithExpiry should have comment or be unexported (golint)
    • Line 17: warning: exported function WithNotFoundExpiry should have comment or be unexported (golint)
    • go-zero/core/limit/periodlimit.go
    • Line 30: warning: exported const Unknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported var ErrUnknownCode should have comment or be unexported (golint)
    • Line 43: warning: exported type LimitOption should have comment or be unexported (golint)
    • Line 45: warning: exported type PeriodLimit should have comment or be unexported (golint)
    • Line 54: warning: exported function NewPeriodLimit should have comment or be unexported (golint)
    • Line 70: warning: exported method PeriodLimit.Take should have comment or be unexported (golint)
    • Line 100: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 105: warning: exported function Align should have comment or be unexported (golint)
    • go-zero/core/collection/rollingwindow.go
    • Line 11: warning: exported type RollingWindowOption should have comment or be unexported (golint)
    • Line 13: warning: exported type RollingWindow should have comment or be unexported (golint)
    • Line 24: warning: exported function NewRollingWindow should have comment or be unexported (golint)
    • Line 37: warning: exported method RollingWindow.Add should have comment or be unexported (golint)
    • Line 44: warning: exported method RollingWindow.Reduce should have comment or be unexported (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 96: warning: exported type Bucket should have comment or be unexported (golint)
    • Line 141: warning: exported function IgnoreCurrentBucket should have comment or be unexported (golint)
    • go-zero/core/syncx/donechan.go
    • Line 9: warning: exported type DoneChan should have comment or be unexported (golint)
    • Line 14: warning: exported function NewDoneChan should have comment or be unexported (golint)
    • Line 20: warning: exported method DoneChan.Close should have comment or be unexported (golint)
    • Line 26: warning: exported method DoneChan.Done should have comment or be unexported (golint)
    • go-zero/core/stores/sqlx/bulkinserter.go
    • Line 23: warning: exported type ResultHandler should have comment or be unexported (golint)
    • Line 25: warning: exported type BulkInserter should have comment or be unexported (golint)
    • Line 38: warning: exported function NewBulkInserter should have comment or be unexported (golint)
    • Line 56: warning: exported method BulkInserter.Flush should have comment or be unexported (golint)
    • Line 60: warning: exported method BulkInserter.Insert should have comment or be unexported (golint)
    • Line 71: warning: exported method BulkInserter.SetResultHandler should have comment or be unexported (golint)
    • Line 77: warning: exported method BulkInserter.UpdateOrDelete should have comment or be unexported (golint)
    • Line 82: warning: exported method BulkInserter.UpdateStmt should have comment or be unexported (golint)
    • go-zero/core/conf/properties.go
    • Line 33: warning: comment on exported function LoadProperties should be of the form "LoadProperties ..." (golint)
    • Line 104: warning: comment on exported function NewProperties should be of the form "NewProperties ..." (golint)
    • go-zero/core/stat/metrics.go
    • Line 13: warning: exported var LogInterval should have comment or be unexported (golint)
    • Line 20: warning: exported type Writer should have comment or be unexported (golint)
    • Line 24: warning: exported type StatReport should have comment or be unexported (golint)
    • Line 37: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 43: warning: exported function SetReportWriter should have comment or be unexported (golint)
    • Line 49: warning: exported function NewMetrics should have comment or be unexported (golint)
    • Line 61: warning: exported method Metrics.Add should have comment or be unexported (golint)
    • Line 65: warning: exported method Metrics.AddDrop should have comment or be unexported (golint)
    • Line 71: warning: exported method Metrics.SetName should have comment or be unexported (golint)
    • Line 188: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/syncx/limit.go
    • Line 9: warning: exported var ErrReturn should have comment or be unexported (golint)
    • Line 11: warning: exported type Limit should have comment or be unexported (golint)
    • Line 15: warning: exported function NewLimit should have comment or be unexported (golint)
    • Line 21: warning: exported method Limit.Borrow should have comment or be unexported (golint)
    • Line 35: warning: exported method Limit.TryBorrow should have comment or be unexported (golint)
    • go-zero/core/threading/routinegroup.go
    • Line 5: warning: exported type RoutineGroup should have comment or be unexported (golint)
    • Line 9: warning: exported function NewRoutineGroup should have comment or be unexported (golint)
    • Line 13: warning: comment on exported method RoutineGroup.Run should be of the form "Run ..." (golint)
    • Line 24: warning: comment on exported method RoutineGroup.RunSafe should be of the form "RunSafe ..." (golint)
    • Line 35: warning: exported method RoutineGroup.Wait should have comment or be unexported (golint)
    • go-zero/core/jsonx/json.go
    • Line 11: warning: exported function Marshal should have comment or be unexported (golint)
    • Line 15: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 24: warning: exported function UnmarshalFromString should have comment or be unexported (golint)
    • Line 33: warning: exported function UnmarshalFromReader should have comment or be unexported (golint)
    • go-zero/core/codec/gzip.go
    • Line 9: warning: exported function Gzip should have comment or be unexported (golint)
    • Line 19: warning: exported function Gunzip should have comment or be unexported (golint)
    • go-zero/core/filex/lookup.go
    • Line 8: warning: exported type OffsetRange should have comment or be unexported (golint)
    • Line 14: warning: exported function SplitLineChunks should have comment or be unexported (golint)
    • go-zero/core/iox/textlinescanner.go
    • Line 9: warning: exported type TextLineScanner should have comment or be unexported (golint)
    • Line 16: warning: exported function NewTextLineScanner should have comment or be unexported (golint)
    • Line 23: warning: exported method TextLineScanner.Scan should have comment or be unexported (golint)
    • Line 40: warning: exported method TextLineScanner.Line should have comment or be unexported (golint)
    • go-zero/core/stores/redis/conf.go
    • Line 6: warning: exported var ErrEmptyHost should have comment or be unexported (golint)
    • Line 12: warning: exported type RedisConf should have comment or be unexported (golint)
    • Line 18: warning: exported type RedisKeyConf should have comment or be unexported (golint)
    • Line 24: warning: exported method RedisConf.NewRedis should have comment or be unexported (golint)
    • Line 28: warning: exported method RedisConf.Validate should have comment or be unexported (golint)
    • Line 40: warning: exported method RedisKeyConf.Validate should have comment or be unexported (golint)
    • go-zero/core/stores/redis/scriptcache.go
    • Line 15: warning: exported type Map should have comment or be unexported (golint)
    • Line 17: warning: exported type ScriptCache should have comment or be unexported (golint)
    • Line 22: warning: exported function GetScriptCache should have comment or be unexported (golint)
    • Line 31: warning: exported method ScriptCache.GetSha should have comment or be unexported (golint)
    • Line 37: warning: exported method ScriptCache.SetSha should have comment or be unexported (golint)
    • go-zero/core/codec/aesecb.go
    • Line 13: warning: exported var ErrPaddingSize should have comment or be unexported (golint)
    • Line 29: warning: exported function NewECBEncrypter should have comment or be unexported (golint)
    • Line 55: warning: exported function NewECBDecrypter should have comment or be unexported (golint)
    • Line 81: warning: exported function EcbDecrypt should have comment or be unexported (golint)
    • Line 95: warning: exported function EcbDecryptBase64 should have comment or be unexported (golint)
    • Line 114: warning: exported function EcbEncrypt should have comment or be unexported (golint)
    • Line 129: warning: exported function EcbEncryptBase64 should have comment or be unexported (golint)
    • Line 152: 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)
    • go-zero/core/syncx/managedresource.go
    • Line 5: warning: exported type ManagedResource should have comment or be unexported (golint)
    • Line 12: warning: exported function NewManagedResource should have comment or be unexported (golint)
    • Line 19: warning: exported method ManagedResource.MarkBroken should have comment or be unexported (golint)
    • Line 28: warning: exported method ManagedResource.Take should have comment or be unexported (golint)
    • go-zero/core/executors/delayexecutor.go
    • Line 10: warning: exported type DelayExecutor should have comment or be unexported (golint)
    • Line 17: warning: exported function NewDelayExecutor should have comment or be unexported (golint)
    • Line 24: warning: exported method DelayExecutor.Trigger should have comment or be unexported (golint)
    • go-zero/core/search/tree.go
    • Line 11: warning: exported var ErrDupItem should have comment or be unexported (golint)
    • Line 33: warning: exported type Tree should have comment or be unexported (golint)
    • Line 37: warning: exported type Result should have comment or be unexported (golint)
    • Line 43: warning: exported function NewTree should have comment or be unexported (golint)
    • Line 49: warning: exported method Tree.Add should have comment or be unexported (golint)
    • Line 61: warning: exported method Tree.Search should have comment or be unexported (golint)
    • Line 117: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 143: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/executors/periodicalexecutor.go
    • Line 18: warning: comment on exported type TaskContainer should be of the form "TaskContainer ..." (with optional leading article) (golint)
    • Line 30: warning: exported type PeriodicalExecutor should have comment or be unexported (golint)
    • Line 44: warning: exported function NewPeriodicalExecutor should have comment or be unexported (golint)
    • Line 62: warning: exported method PeriodicalExecutor.Add should have comment or be unexported (golint)
    • Line 69: warning: exported method PeriodicalExecutor.Flush should have comment or be unexported (golint)
    • Line 78: warning: exported method PeriodicalExecutor.Sync should have comment or be unexported (golint)
    • Line 84: warning: exported method PeriodicalExecutor.Wait should have comment or be unexported (golint)
    • go-zero/core/collection/timingwheel.go
    • Line 16: warning: exported type Execute should have comment or be unexported (golint)
    • Line 18: warning: exported type TimingWheel should have comment or be unexported (golint)
    • Line 57: warning: exported function NewTimingWheel should have comment or be unexported (golint)
    • Line 88: warning: exported method TimingWheel.Drain should have comment or be unexported (golint)
    • Line 92: warning: exported method TimingWheel.MoveTimer should have comment or be unexported (golint)
    • Line 103: warning: exported method TimingWheel.RemoveTimer should have comment or be unexported (golint)
    • Line 111: warning: exported method TimingWheel.SetTimer should have comment or be unexported (golint)
    • Line 125: warning: exported method TimingWheel.Stop should have comment or be unexported (golint)
    • go-zero/core/mr/mapreduce.go
    • Line 20: warning: exported var ErrCancelWithNil should have comment or be unexported (golint)
    • Line 25: warning: exported type GenerateFunc should have comment or be unexported (golint)
    • Line 26: warning: exported type MapFunc should have comment or be unexported (golint)
    • Line 27: warning: exported type VoidMapFunc should have comment or be unexported (golint)
    • Line 28: warning: exported type MapperFunc should have comment or be unexported (golint)
    • Line 29: warning: exported type ReducerFunc should have comment or be unexported (golint)
    • Line 30: warning: exported type VoidReducerFunc should have comment or be unexported (golint)
    • Line 31: warning: exported type Option should have comment or be unexported (golint)
    • Line 37: warning: exported type Writer should have comment or be unexported (golint)
    • Line 42: warning: exported function Finish should have comment or be unexported (golint)
    • Line 61: warning: exported function FinishVoid should have comment or be unexported (golint)
    • Line 76: warning: exported function Map should have comment or be unexported (golint)
    • Line 87: warning: exported function MapReduce should have comment or be unexported (golint)
    • Line 92: warning: exported function MapReduceWithSource should have comment or be unexported (golint)
    • Line 140: warning: exported function MapReduceVoid should have comment or be unexported (golint)
    • Line 150: warning: exported function MapVoid should have comment or be unexported (golint)
    • Line 156: warning: exported function WithWorkers should have comment or be unexported (golint)
    • go-zero/core/proc/shutdown.go
    • Line 27: warning: exported function AddShutdownListener should have comment or be unexported (golint)
    • Line 31: warning: exported function AddWrapUpListener should have comment or be unexported (golint)
    • Line 35: warning: exported function SetTimeoutToForceQuit should have comment or be unexported (golint)
    • go-zero/core/hash/consistenthash.go
    • Line 14: warning: exported const TopWeight should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type HashFunc should have comment or be unexported (golint)
    • Line 23: warning: exported type ConsistentHash should have comment or be unexported (golint)
    • Line 33: warning: exported function NewConsistentHash should have comment or be unexported (golint)
    • Line 37: warning: exported function NewCustomConsistentHash should have comment or be unexported (golint)
    • Line 95: warning: exported method ConsistentHash.Get should have comment or be unexported (golint)
    • Line 121: warning: exported method ConsistentHash.Remove should have comment or be unexported (golint)
    • go-zero/core/metric/gauge.go
    • Line 9: warning: exported type GaugeVecOpts should have comment or be unexported (golint)
    • Line 11: warning: exported type GuageVec should have comment or be unexported (golint)
    • Line 23: warning: exported function NewGaugeVec should have comment or be unexported (golint)
    • go-zero/core/collection/ring.go
    • Line 3: warning: exported type Ring should have comment or be unexported (golint)
    • Line 8: warning: exported function NewRing should have comment or be unexported (golint)
    • Line 14: warning: exported method Ring.Add should have comment or be unexported (golint)
    • Line 19: warning: exported method Ring.Take should have comment or be unexported (golint)
    • go-zero/core/codec/dh.go
    • Line 14: warning: exported var ErrInvalidPriKey should have comment or be unexported (golint)
    • Line 23: warning: exported type DhKey should have comment or be unexported (golint)
    • Line 28: warning: exported function ComputeKey should have comment or be unexported (golint)
    • Line 44: warning: exported function GenerateKey should have comment or be unexported (golint)
    • Line 66: warning: exported function NewPublicKey should have comment or be unexported (golint)
    • Line 70: warning: exported method DhKey.Bytes should have comment or be unexported (golint)
    • go-zero/core/stringx/trie.go
    • Line 8: warning: exported type TrieOption should have comment or be unexported (golint)
    • Line 10: warning: exported type Trie should have comment or be unexported (golint)
    • Line 26: warning: exported function NewTrie should have comment or be unexported (golint)
    • Line 133: warning: exported function WithMask should have comment or be unexported (golint)
    • go-zero/core/codec/hmac.go
    • Line 10: warning: exported function Hmac should have comment or be unexported (golint)
    • Line 16: warning: exported function HmacBase64 should have comment or be unexported (golint)
    • go-zero/core/metric/histogram.go
    • Line 9: warning: exported type HistogramVecOpts should have comment or be unexported (golint)
    • Line 18: warning: exported type HistogramVec should have comment or be unexported (golint)
    • Line 28: warning: exported function NewHistogramVec should have comment or be unexported (golint)
    • go-zero/core/syncx/refresource.go
    • Line 8: warning: exported var ErrUseOfCleaned should have comment or be unexported (golint)
    • Line 10: warning: exported type RefResource should have comment or be unexported (golint)
    • Line 17: warning: exported function NewRefResource should have comment or be unexported (golint)
    • Line 23: warning: exported method RefResource.Use should have comment or be unexported (golint)
    • Line 35: warning: exported method RefResource.Clean should have comment or be unexported (golint)
    • go-zero/core/stores/sqlx/sqlconn.go
    • Line 9: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 28: warning: exported type SqlOption should have comment or be unexported (golint)
    • Line 30: warning: exported type StmtSession should have comment or be unexported (golint)
    • Line 65: warning: exported function NewSqlConn should have comment or be unexported (golint)
    • Line 106: 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 151: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-zero/core/queue/balancedpusher.go
    • Line 10: warning: exported var ErrNoAvailablePusher should have comment or be unexported (golint)
    • Line 12: warning: exported type BalancedPusher should have comment or be unexported (golint)
    • Line 18: warning: exported function NewBalancedPusher should have comment or be unexported (golint)
    • Line 25: warning: exported method BalancedPusher.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method BalancedPusher.Push should have comment or be unexported (golint)
    • go-zero/core/queue/queue.go
    • Line 19: warning: exported type Queue should have comment or be unexported (golint)
    • Line 36: warning: exported type Listener should have comment or be unexported (golint)
    • Line 41: warning: exported type Poller should have comment or be unexported (golint)
    • Line 46: warning: exported type Pusher should have comment or be unexported (golint)
    • Line 52: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 69: warning: exported method Queue.AddListener should have comment or be unexported (golint)
    • Line 73: warning: exported method Queue.Broadcast should have comment or be unexported (golint)
    • Line 84: warning: exported method Queue.SetName should have comment or be unexported (golint)
    • Line 89: warning: exported method Queue.SetNumConsumer should have comment or be unexported (golint)
    • Line 93: warning: exported method Queue.SetNumProducer should have comment or be unexported (golint)
    • Line 97: warning: exported method Queue.Start should have comment or be unexported (golint)
    • Line 106: warning: exported method Queue.Stop should have comment or be unexported (golint)
    • go-zero/core/proc/env.go
    • Line 14: warning: exported function Env should have comment or be unexported (golint)
    • Line 31: warning: exported function EnvInt should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!