Preparing report...

Report for github.com/itzmanish/go-micro

A+    Excellent!    Found 233 issues across 508 files

Tweet

gofmt98%

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!


golint61%

Golint is a linter for Go source code.

    • go-micro/config/loader/loader.go
    • Line 1: warning: package comment should be of the form "Package loader ..." (golint)
    • Line 45: warning: exported type Options should have comment or be unexported (golint)
    • Line 53: warning: exported type Option should have comment or be unexported (golint)
    • go-micro/util/socket/socket.go
    • Line 25: warning: exported method Socket.SetLocal should have comment or be unexported (golint)
    • Line 29: warning: exported method Socket.SetRemote should have comment or be unexported (golint)
    • Line 61: warning: exported method Socket.Remote should have comment or be unexported (golint)
    • Line 65: warning: exported method Socket.Local should have comment or be unexported (golint)
    • Line 69: warning: exported method Socket.Send should have comment or be unexported (golint)
    • Line 80: warning: exported method Socket.Recv should have comment or be unexported (golint)
    • go-micro/auth/default.go
    • Line 8: warning: exported var DefaultAuth should have comment or be unexported (golint)
    • Line 11: warning: exported function NewAuth should have comment or be unexported (golint)
    • go-micro/codec/bytes/marshaler.go
    • Line 7: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 9: warning: exported type Message should have comment or be unexported (golint)
    • Line 14: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 26: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • go-micro/registry/memory/memory.go
    • Line 33: warning: exported type Registry should have comment or be unexported (golint)
    • Line 41: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 114: warning: exported method Registry.Init should have comment or be unexported (golint)
    • Line 142: warning: exported method Registry.Options should have comment or be unexported (golint)
    • Line 146: warning: exported method Registry.Register should have comment or be unexported (golint)
    • Line 210: warning: exported method Registry.Deregister should have comment or be unexported (golint)
    • Line 243: warning: exported method Registry.GetService should have comment or be unexported (golint)
    • Line 262: warning: exported method Registry.ListServices should have comment or be unexported (golint)
    • Line 276: warning: exported method Registry.Watch should have comment or be unexported (golint)
    • go-micro/tunnel/options.go
    • Line 15: warning: comment on exported var DefaultToken should be of the form "DefaultToken ..." (golint)
    • Line 20: warning: exported type Option should have comment or be unexported (golint)
    • Line 36: warning: exported type DialOption should have comment or be unexported (golint)
    • Line 38: warning: exported type DialOptions should have comment or be unexported (golint)
    • Line 49: warning: exported type ListenOption should have comment or be unexported (golint)
    • Line 51: warning: exported type ListenOptions should have comment or be unexported (golint)
    • Line 58: warning: comment on exported function Id should be of the form "Id ..." (golint)
    • Line 65: warning: comment on exported function Address should be of the form "Address ..." (golint)
    • Line 93: warning: comment on exported function ListenMode should be of the form "ListenMode ..." (golint)
    • Line 100: warning: comment on exported function ListenTimeout should be of the form "ListenTimeout ..." (golint)
    • Line 109: warning: comment on exported function DialMode should be of the form "DialMode ..." (golint)
    • go-micro/api/handler/web/web.go
    • Line 20: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 164: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 170: warning: exported function WithService should have comment or be unexported (golint)
    • go-micro/config/cmd/options.go
    • Line 20: warning: exported type Options should have comment or be unexported (golint)
    • Line 58: warning: comment on exported function Name should be of the form "Name ..." (golint)
    • Line 65: warning: comment on exported function Description should be of the form "Description ..." (golint)
    • Line 72: warning: comment on exported function Version should be of the form "Version ..." (golint)
    • Line 79: warning: exported function Broker should have comment or be unexported (golint)
    • Line 85: warning: exported function Config should have comment or be unexported (golint)
    • Line 91: warning: exported function Selector should have comment or be unexported (golint)
    • Line 97: warning: exported function Registry should have comment or be unexported (golint)
    • Line 103: warning: exported function Runtime should have comment or be unexported (golint)
    • Line 109: warning: exported function Transport should have comment or be unexported (golint)
    • Line 115: warning: exported function Client should have comment or be unexported (golint)
    • Line 121: warning: exported function Server should have comment or be unexported (golint)
    • Line 127: warning: exported function Store should have comment or be unexported (golint)
    • Line 133: warning: exported function Tracer should have comment or be unexported (golint)
    • Line 139: warning: exported function Auth should have comment or be unexported (golint)
    • Line 145: warning: exported function Profile should have comment or be unexported (golint)
    • Line 151: warning: comment on exported function NewBroker should be of the form "NewBroker ..." (golint)
    • Line 158: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 165: warning: comment on exported function NewRegistry should be of the form "NewRegistry ..." (golint)
    • Line 172: warning: comment on exported function NewSelector should be of the form "NewSelector ..." (golint)
    • Line 179: warning: comment on exported function NewServer should be of the form "NewServer ..." (golint)
    • Line 186: warning: comment on exported function NewTransport should be of the form "NewTransport ..." (golint)
    • Line 193: warning: comment on exported function NewRuntime should be of the form "NewRuntime ..." (golint)
    • Line 200: warning: comment on exported function NewTracer should be of the form "NewTracer ..." (golint)
    • Line 207: warning: comment on exported function NewAuth should be of the form "NewAuth ..." (golint)
    • go-micro/config/config.go
    • Line 37: warning: exported type Options should have comment or be unexported (golint)
    • Line 46: warning: exported type Option should have comment or be unexported (golint)
    • Line 49: warning: comment on exported var DefaultConfig should be of the form "DefaultConfig ..." (golint)
    • Line 58: warning: comment on exported function Bytes should be of the form "Bytes ..." (golint)
    • Line 63: warning: comment on exported function Map should be of the form "Map ..." (golint)
    • Line 73: warning: comment on exported function Sync should be of the form "Sync ..." (golint)
    • go-micro/config/source/options.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 22: warning: exported type Option should have comment or be unexported (golint)
    • Line 24: warning: exported function NewOptions should have comment or be unexported (golint)
    • go-micro/debug/profile/profile.go
    • Line 4: warning: exported type Profile should have comment or be unexported (golint)
    • Line 14: warning: exported var DefaultProfile should have comment or be unexported (golint)
    • Line 31: warning: exported type Options should have comment or be unexported (golint)
    • Line 36: warning: exported type Option should have comment or be unexported (golint)
    • go-micro/logger/helper.go
    • Line 7: warning: exported type Helper should have comment or be unexported (golint)
    • Line 12: warning: exported function NewHelper should have comment or be unexported (golint)
    • Line 16: warning: exported method Helper.Info should have comment or be unexported (golint)
    • Line 23: warning: exported method Helper.Infof should have comment or be unexported (golint)
    • Line 30: warning: exported method Helper.Trace should have comment or be unexported (golint)
    • Line 37: warning: exported method Helper.Tracef should have comment or be unexported (golint)
    • Line 44: warning: exported method Helper.Debug should have comment or be unexported (golint)
    • Line 51: warning: exported method Helper.Debugf should have comment or be unexported (golint)
    • Line 58: warning: exported method Helper.Warn should have comment or be unexported (golint)
    • Line 65: warning: exported method Helper.Warnf should have comment or be unexported (golint)
    • Line 79: warning: exported method Helper.Errorf should have comment or be unexported (golint)
    • Line 86: warning: exported method Helper.Fatal should have comment or be unexported (golint)
    • Line 94: warning: exported method Helper.Fatalf should have comment or be unexported (golint)
    • Line 102: warning: exported method Helper.WithError should have comment or be unexported (golint)
    • Line 108: warning: exported method Helper.WithFields should have comment or be unexported (golint)
    • go-micro/transport/transport.go
    • Line 19: warning: exported type Message should have comment or be unexported (golint)
    • Line 24: warning: exported type Socket should have comment or be unexported (golint)
    • Line 32: warning: exported type Client should have comment or be unexported (golint)
    • Line 36: warning: exported type Listener should have comment or be unexported (golint)
    • Line 42: warning: exported type Option should have comment or be unexported (golint)
    • Line 44: warning: exported type DialOption should have comment or be unexported (golint)
    • Line 46: warning: exported type ListenOption should have comment or be unexported (golint)
    • Line 49: warning: exported var DefaultTransport should have comment or be unexported (golint)
    • Line 54: warning: exported function NewTransport should have comment or be unexported (golint)
    • go-micro/debug/log/log.go
    • Line 11: warning: comment on exported var DefaultSize should be of the form "DefaultSize ..." (golint)
    • Line 15: warning: comment on exported var DefaultFormat should be of the form "DefaultFormat ..." (golint)
    • Line 45: warning: comment on exported type FormatFunc should be of the form "FormatFunc ..." (with optional leading article) (golint)
    • go-micro/runtime/local/source/git/git.go
    • Line 19: warning: exported method Source.Fetch should have comment or be unexported (golint)
    • Line 63: warning: exported method Source.Commit should have comment or be unexported (golint)
    • Line 76: warning: exported function NewSource should have comment or be unexported (golint)
    • go-micro/runtime/local/process/os/os.go
    • Line 16: warning: exported method Process.Exec should have comment or be unexported (golint)
    • Line 22: warning: exported method Process.Fork should have comment or be unexported (golint)
    • Line 60: warning: exported method Process.Kill should have comment or be unexported (golint)
    • Line 74: warning: exported method Process.Wait should have comment or be unexported (golint)
    • go-micro/codec/json/marshaler.go
    • Line 17: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 19: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 31: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • go-micro/client/client.go
    • Line 118: warning: comment on exported function Call should be of the form "Call ..." (golint)
    • Line 123: warning: comment on exported function Publish should be of the form "Publish ..." (golint)
    • Line 129: warning: comment on exported function NewMessage should be of the form "NewMessage ..." (golint)
    • Line 134: warning: comment on exported function NewRequest should be of the form "NewRequest ..." (golint)
    • Line 140: warning: comment on exported function NewStream should be of the form "NewStream ..." (golint)
    • Line 146: warning: exported function String should have comment or be unexported (golint)
    • go-micro/proxy/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported type Option should have comment or be unexported (golint)
    • go-micro/client/grpc/options.go
    • Line 40: warning: comment on exported function PoolMaxStreams should be of the form "PoolMaxStreams ..." (golint)
    • Line 50: warning: comment on exported function PoolMaxIdle should be of the form "PoolMaxIdle ..." (golint)
    • Line 60: warning: comment on exported function Codec should be of the form "Codec ..." (golint)
    • go-micro/logger/options.go
    • Line 8: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: exported type Options should have comment or be unexported (golint)
    • Line 51: warning: exported function SetOption should have comment or be unexported (golint)
    • go-micro/auth/options.go
    • Line 11: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 19: warning: exported type Options should have comment or be unexported (golint)
    • Line 44: warning: exported type Option should have comment or be unexported (golint)
    • Line 103: warning: exported function Client should have comment or be unexported (golint)
    • Line 109: warning: exported type GenerateOptions should have comment or be unexported (golint)
    • Line 126: warning: exported type GenerateOption should have comment or be unexported (golint)
    • Line 186: warning: exported type TokenOptions should have comment or be unexported (golint)
    • Line 199: warning: exported type TokenOption should have comment or be unexported (golint)
    • Line 208: warning: exported function WithCredentials should have comment or be unexported (golint)
    • Line 215: warning: exported function WithToken should have comment or be unexported (golint)
    • Line 221: warning: exported function WithTokenIssuer should have comment or be unexported (golint)
    • Line 242: warning: exported type VerifyOptions should have comment or be unexported (golint)
    • Line 247: warning: exported type VerifyOption should have comment or be unexported (golint)
    • Line 249: warning: exported function VerifyContext should have comment or be unexported (golint)
    • Line 254: warning: exported function VerifyNamespace should have comment or be unexported (golint)
    • Line 260: warning: exported type RulesOptions should have comment or be unexported (golint)
    • Line 265: warning: exported type RulesOption should have comment or be unexported (golint)
    • Line 267: warning: exported function RulesContext should have comment or be unexported (golint)
    • Line 273: warning: exported function RulesNamespace should have comment or be unexported (golint)
    • go-micro/codec/grpc/grpc.go
    • Line 15: warning: exported type Codec should have comment or be unexported (golint)
    • Line 20: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 48: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 136: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 144: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/service/options.go
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported type Option should have comment or be unexported (golint)
    • Line 34: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 51: warning: exported function Broker should have comment or be unexported (golint)
    • Line 60: warning: exported function Client should have comment or be unexported (golint)
    • Line 75: warning: exported function Server should have comment or be unexported (golint)
    • Line 198: warning: exported function BeforeStart should have comment or be unexported (golint)
    • Line 204: warning: exported function BeforeStop should have comment or be unexported (golint)
    • Line 210: warning: exported function AfterStart should have comment or be unexported (golint)
    • Line 216: warning: exported function AfterStop should have comment or be unexported (golint)
    • go-micro/util/socket/pool.go
    • Line 7: warning: exported type Pool should have comment or be unexported (golint)
    • Line 12: warning: exported method Pool.Get should have comment or be unexported (golint)
    • Line 38: warning: exported method Pool.Release should have comment or be unexported (golint)
    • go-micro/debug/trace/memory/memory.go
    • Line 12: warning: exported type Tracer should have comment or be unexported (golint)
    • Line 41: warning: exported method Tracer.Start should have comment or be unexported (golint)
    • Line 70: warning: exported method Tracer.Finish should have comment or be unexported (golint)
    • Line 79: warning: exported function NewTracer should have comment or be unexported (golint)
    • go-micro/runtime/local/git/git.go
    • Line 17: warning: exported type Gitter should have comment or be unexported (golint)
    • Line 150: warning: exported function NewGitter should have comment or be unexported (golint)
    • Line 225: warning: comment on exported method Source.RuntimeName should be of the form "RuntimeName ..." (golint)
    • Line 234: warning: comment on exported method Source.RuntimeSource should be of the form "RuntimeSource ..." (golint)
    • go-micro/util/pool/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 15: warning: exported type Option should have comment or be unexported (golint)
    • Line 17: warning: exported function Size should have comment or be unexported (golint)
    • Line 23: warning: exported function Transport should have comment or be unexported (golint)
    • Line 29: warning: exported function TTL should have comment or be unexported (golint)
    • go-micro/util/kubernetes/client/types.go
    • Line 3: warning: comment on exported type ContainerPort should be of the form "ContainerPort ..." (with optional leading article) (golint)
    • Line 17: warning: exported type Condition should have comment or be unexported (golint)
    • Line 65: warning: comment on exported type DeploymentList should be of the form "DeploymentList ..." (with optional leading article) (golint)
    • Line 76: warning: exported type LoadBalancerIngress should have comment or be unexported (golint)
    • Line 81: warning: exported type LoadBalancerStatus should have comment or be unexported (golint)
    • Line 100: warning: comment on exported type PodList should be of the form "PodList ..." (with optional leading article) (golint)
    • Line 112: warning: comment on exported type PodStatus should be of the form "PodStatus ..." (with optional leading article) (golint)
    • Line 128: warning: exported type ContainerStatus should have comment or be unexported (golint)
    • Line 132: warning: exported type ContainerState should have comment or be unexported (golint)
    • Line 160: warning: comment on exported type ServiceStatus should be of the form "ServiceStatus ..." (with optional leading article) (golint)
    • Line 172: warning: comment on exported type ServiceList should be of the form "ServiceList ..." (with optional leading article) (golint)
    • Line 188: warning: comment on exported type NamespaceList should be of the form "NamespaceList ..." (with optional leading article) (golint)
    • Line 193: warning: comment on exported type ImagePullSecret should be of the form "ImagePullSecret ..." (with optional leading article) (golint)
    • Line 198: warning: comment on exported type Secret should be of the form "Secret ..." (with optional leading article) (golint)
    • Line 205: warning: comment on exported type ServiceAccount should be of the form "ServiceAccount ..." (with optional leading article) (golint)
    • go-micro/client/options.go
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 48: warning: exported type CallOptions should have comment or be unexported (golint)
    • Line 78: warning: exported type PublishOptions should have comment or be unexported (golint)
    • Line 86: warning: exported type MessageOptions should have comment or be unexported (golint)
    • Line 90: warning: exported type RequestOptions should have comment or be unexported (golint)
    • Line 99: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 141: warning: comment on exported function ContentType should be of the form "ContentType ..." (golint)
    • Line 178: warning: comment on exported function Selector should be of the form "Selector ..." (golint)
    • Line 185: warning: comment on exported function Wrap should be of the form "Wrap ..." (golint)
    • Line 192: warning: comment on exported function WrapCall should be of the form "WrapCall ..." (golint)
    • Line 207: warning: comment on exported function Retries should be of the form "Retries ..." (golint)
    • Line 222: warning: comment on exported function RequestTimeout should be of the form "RequestTimeout ..." (golint)
    • Line 237: warning: comment on exported function DialTimeout should be of the form "DialTimeout ..." (golint)
    • Line 267: warning: exported function WithSelectOption should have comment or be unexported (golint)
    • Line 343: warning: exported function WithMessageContentType should have comment or be unexported (golint)
    • Line 351: warning: exported function WithContentType should have comment or be unexported (golint)
    • Line 357: warning: exported function StreamingRequest should have comment or be unexported (golint)
    • go-micro/registry/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 19: warning: exported type RegisterOptions should have comment or be unexported (golint)
    • Line 26: warning: exported type WatchOptions should have comment or be unexported (golint)
    • Line 35: warning: exported type DeregisterOptions should have comment or be unexported (golint)
    • Line 39: warning: exported type GetOptions should have comment or be unexported (golint)
    • Line 43: warning: exported type ListOptions should have comment or be unexported (golint)
    • Line 47: warning: exported type Option should have comment or be unexported (golint)
    • Line 49: warning: exported type RegisterOption should have comment or be unexported (golint)
    • Line 51: warning: exported type WatchOption should have comment or be unexported (golint)
    • Line 53: warning: exported type DeregisterOption should have comment or be unexported (golint)
    • Line 55: warning: exported type GetOption should have comment or be unexported (golint)
    • Line 57: warning: exported type ListOption should have comment or be unexported (golint)
    • Line 66: warning: exported function Timeout should have comment or be unexported (golint)
    • Line 79: warning: comment on exported function TLSConfig should be of the form "TLSConfig ..." (golint)
    • Line 86: warning: exported function RegisterTTL should have comment or be unexported (golint)
    • Line 92: warning: exported function RegisterContext should have comment or be unexported (golint)
    • Line 98: warning: comment on exported function WatchService should be of the form "WatchService ..." (golint)
    • Line 105: warning: exported function WatchContext should have comment or be unexported (golint)
    • Line 111: warning: exported function DeregisterContext should have comment or be unexported (golint)
    • Line 117: warning: exported function GetContext should have comment or be unexported (golint)
    • Line 123: warning: exported function ListContext should have comment or be unexported (golint)
    • go-micro/util/log/log.go
    • Line 14: warning: comment on exported type Level should be of the form "Level ..." (with optional leading article) (golint)
    • Line 18: warning: exported const LevelFatal should have comment (or a comment on this block) or be unexported (golint)
    • Line 131: warning: comment on exported function WithLevelf should be of the form "WithLevelf ..." (golint)
    • Line 219: warning: comment on exported function SetPrefix should be of the form "SetPrefix ..." (golint)
    • Line 224: warning: comment on exported function Name should be of the form "Name ..." (golint)
    • go-micro/auth/provider/provider.go
    • Line 30: warning: exported type EndpointOptions should have comment or be unexported (golint)
    • Line 37: warning: exported type EndpointOption should have comment or be unexported (golint)
    • Line 39: warning: exported function WithState should have comment or be unexported (golint)
    • Line 45: warning: exported function WithLoginHint should have comment or be unexported (golint)
    • go-micro/helper/helper.go
    • Line 17: warning: exported function ACMEHosts should have comment or be unexported (golint)
    • Line 27: warning: exported function RequestToContext should have comment or be unexported (golint)
    • Line 36: warning: exported function TLSConfig should have comment or be unexported (golint)
    • Line 81: warning: exported function UnexpectedCommand should have comment or be unexported (golint)
    • Line 86: warning: exported function MissingCommand should have comment or be unexported (golint)
    • Line 90: warning: comment on exported function Subcommand should be of the form "Subcommand ..." (golint)
    • go-micro/logger/logger.go
    • Line 1: warning: package comment should be of the form "Package logger ..." (golint)
    • Line 5: warning: comment on exported var DefaultLogger should be of the form "DefaultLogger ..." (golint)
    • Line 25: warning: exported function Init should have comment or be unexported (golint)
    • Line 29: warning: exported function Fields should have comment or be unexported (golint)
    • Line 33: warning: exported function Log should have comment or be unexported (golint)
    • Line 37: warning: exported function Logf should have comment or be unexported (golint)
    • Line 41: warning: exported function String should have comment or be unexported (golint)
    • go-micro/agent/input/input.go
    • Line 8: warning: exported type EventType should have comment or be unexported (golint)
    • Line 11: warning: exported const TextEvent should have comment (or a comment on this block) or be unexported (golint)
    • go-micro/broker/broker.go
    • Line 21: warning: exported type Message should have comment or be unexported (golint)
    • Line 42: warning: exported var DefaultBroker should have comment or be unexported (golint)
    • Line 45: warning: exported function Init should have comment or be unexported (golint)
    • Line 49: warning: exported function Connect should have comment or be unexported (golint)
    • Line 53: warning: exported function Disconnect should have comment or be unexported (golint)
    • Line 57: warning: exported function Publish should have comment or be unexported (golint)
    • Line 61: warning: exported function Subscribe should have comment or be unexported (golint)
    • Line 65: warning: exported function String should have comment or be unexported (golint)
    • go-micro/util/file/client.go
    • Line 16: warning: comment on exported type File should be of the form "File ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 148: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • go-micro/codec/proto/message.go
    • Line 3: warning: exported type Message should have comment or be unexported (golint)
    • Line 7: warning: exported method Message.MarshalJSON should have comment or be unexported (golint)
    • Line 11: warning: exported method Message.UnmarshalJSON should have comment or be unexported (golint)
    • Line 16: warning: exported method Message.ProtoMessage should have comment or be unexported (golint)
    • Line 18: warning: exported method Message.Reset should have comment or be unexported (golint)
    • Line 26: warning: exported method Message.Marshal should have comment or be unexported (golint)
    • Line 30: warning: exported method Message.Unmarshal should have comment or be unexported (golint)
    • Line 35: warning: exported function NewMessage should have comment or be unexported (golint)
    • go-micro/sync/sync.go
    • Line 10: warning: exported var ErrLockTimeout should have comment or be unexported (golint)
    • Line 37: warning: exported type Options should have comment or be unexported (golint)
    • Line 42: warning: exported type Option should have comment or be unexported (golint)
    • Line 44: warning: exported type LeaderOptions should have comment or be unexported (golint)
    • Line 46: warning: exported type LeaderOption should have comment or be unexported (golint)
    • Line 48: warning: exported type LockOptions should have comment or be unexported (golint)
    • Line 53: warning: exported type LockOption should have comment or be unexported (golint)
    • go-micro/store/file/file.go
    • Line 1: warning: package comment should be of the form "Package file ..." (golint)
    • Line 99: warning: receiver name f should be consistent with previous receiver name m for fileStore (golint)
    • Line 277: warning: receiver name f should be consistent with previous receiver name m for fileStore (golint)
    • Line 287: warning: receiver name f should be consistent with previous receiver name m for fileStore (golint)
    • go-micro/client/context.go
    • Line 9: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 14: warning: exported function NewContext should have comment or be unexported (golint)
    • go-micro/config/cmd/cmd.go
    • Line 86: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 101: warning: exported type Option should have comment or be unexported (golint)
    • Line 104: warning: exported var DefaultCmd should have comment or be unexported (golint)
    • Line 810: warning: exported function DefaultOptions should have comment or be unexported (golint)
    • Line 814: warning: exported function App should have comment or be unexported (golint)
    • Line 818: warning: exported function Init should have comment or be unexported (golint)
    • Line 822: warning: exported function NewCmd should have comment or be unexported (golint)
    • go-micro/config/reader/options.go
    • Line 12: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported type Option should have comment or be unexported (golint)
    • Line 18: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 35: warning: exported function WithEncoder should have comment or be unexported (golint)
    • go-micro/util/http/options.go
    • Line 7: warning: exported type Options should have comment or be unexported (golint)
    • Line 11: warning: exported type Option should have comment or be unexported (golint)
    • Line 13: warning: exported function WithRegistry should have comment or be unexported (golint)
    • go-micro/auth/auth.go
    • Line 46: warning: comment on exported type AuthToken should be of the form "AuthToken ..." (with optional leading article) (golint)
    • go-micro/auth/token/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported type Option should have comment or be unexported (golint)
    • Line 41: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 53: warning: exported type GenerateOptions should have comment or be unexported (golint)
    • Line 58: warning: exported type GenerateOption should have comment or be unexported (golint)
    • go-micro/tunnel/tunnel.go
    • Line 12: warning: comment on exported const Unicast should be of the form "Unicast ..." (golint)
    • Line 14: warning: comment on exported const Multicast should be of the form "Multicast ..." (golint)
    • Line 16: warning: comment on exported const Broadcast should be of the form "Broadcast ..." (golint)
    • Line 31: warning: comment on exported var ErrLinkLoopback should be of the form "ErrLinkLoopback ..." (golint)
    • Line 85: warning: comment on exported type Listener should be of the form "Listener ..." (with optional leading article) (golint)
    • go-micro/server/handler.go
    • Line 5: warning: exported type HandlerOption should have comment or be unexported (golint)
    • Line 7: warning: exported type HandlerOptions should have comment or be unexported (golint)
    • Line 12: warning: exported type SubscriberOption should have comment or be unexported (golint)
    • Line 14: warning: exported type SubscriberOptions should have comment or be unexported (golint)
    • Line 31: warning: comment on exported function InternalHandler should be of the form "InternalHandler ..." (golint)
    • Line 40: warning: comment on exported function InternalSubscriber should be of the form "InternalSubscriber ..." (golint)
    • Line 47: warning: exported function NewSubscriberOptions should have comment or be unexported (golint)
    • Line 68: warning: comment on exported function SubscriberQueue should be of the form "SubscriberQueue ..." (golint)
    • go-micro/agent/input/telegram/telegram.go
    • Line 23: warning: exported type ChatType should have comment or be unexported (golint)
    • Line 26: warning: exported const Private should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: receiver name p should be consistent with previous receiver name ti for telegramInput (golint)
    • go-micro/api/resolver/path/path.go
    • Line 11: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 15: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 39: warning: exported function NewResolver should have comment or be unexported (golint)
    • go-micro/api/handler/api/api.go
    • Line 22: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 110: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 117: warning: exported function WithService should have comment or be unexported (golint)
    • go-micro/codec/proto/marshaler.go
    • Line 14: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 16: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 36: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • go-micro/codec/proto/proto.go
    • Line 12: warning: exported type Codec should have comment or be unexported (golint)
    • Line 16: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 20: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 48: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 56: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/runtime/local/build/go/golang.go
    • Line 12: warning: exported type Builder should have comment or be unexported (golint)
    • Line 37: warning: exported method Builder.Build should have comment or be unexported (golint)
    • Line 53: warning: exported method Builder.Clean should have comment or be unexported (golint)
    • Line 58: warning: exported function NewBuild should have comment or be unexported (golint)
    • go-micro/micro.go
    • Line 74: warning: exported type Option should have comment or be unexported (golint)
    • Line 77: warning: exported var HeaderPrefix should have comment or be unexported (golint)
    • Line 109: warning: comment on exported function NewPublisher should be of the form "NewPublisher ..." (golint)
    • go-micro/client/selector/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported type SelectOptions should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function WithStrategy should be of the form "WithStrategy ..." (golint)
    • go-micro/broker/options.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 28: warning: exported type PublishOptions should have comment or be unexported (golint)
    • Line 34: warning: exported type SubscribeOptions should have comment or be unexported (golint)
    • Line 48: warning: exported type Option should have comment or be unexported (golint)
    • Line 50: warning: exported type PublishOption should have comment or be unexported (golint)
    • Line 59: warning: exported type SubscribeOption should have comment or be unexported (golint)
    • Line 61: warning: exported function NewSubscribeOptions should have comment or be unexported (golint)
    • Line 111: warning: exported function Registry should have comment or be unexported (golint)
    • Line 124: warning: comment on exported function TLSConfig should be of the form "TLSConfig ..." (golint)
    • go-micro/plugin/plugin.go
    • Line 27: warning: comment on exported var DefaultPlugin should be of the form "DefaultPlugin ..." (golint)
    • Line 36: warning: exported function Build should have comment or be unexported (golint)
    • Line 40: warning: exported function Load should have comment or be unexported (golint)
    • Line 44: warning: exported function Init should have comment or be unexported (golint)
    • go-micro/runtime/runtime.go
    • Line 15: warning: exported var ErrAlreadyExists should have comment or be unexported (golint)
    • Line 40: warning: comment on exported type LogStream should be of the form "LogStream ..." (with optional leading article) (golint)
    • Line 47: warning: exported type LogRecord should have comment or be unexported (golint)
    • go-micro/server/options.go
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 102: warning: comment on exported function Name should be of the form "Name ..." (golint)
    • Line 109: warning: comment on exported function Id should be of the form "Id ..." (golint)
    • Line 130: warning: comment on exported function Advertise should be of the form "Advertise ..." (golint)
    • Line 202: warning: comment on exported function RegisterTTL should be of the form "RegisterTTL ..." (golint)
    • Line 209: warning: comment on exported function RegisterInterval should be of the form "RegisterInterval ..." (golint)
    • Line 255: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 259: warning: comment on exported function WrapHandler should be of the form "WrapHandler ..." (golint)
    • Line 266: warning: comment on exported function WrapSubscriber should be of the form "WrapSubscriber ..." (golint)
    • go-micro/api/resolver/subdomain/subdomain.go
    • Line 13: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 18: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 23: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 31: warning: exported method Resolver.Domain should have comment or be unexported (golint)
    • go-micro/metadata/metadata.go
    • Line 14: warning: exported method Metadata.Get should have comment or be unexported (golint)
    • Line 26: warning: exported method Metadata.Set should have comment or be unexported (golint)
    • Line 30: warning: exported method Metadata.Delete should have comment or be unexported (golint)
    • go-micro/registry/memory/watcher.go
    • Line 9: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 16: warning: exported method Watcher.Next should have comment or be unexported (golint)
    • Line 30: warning: exported method Watcher.Stop should have comment or be unexported (golint)
    • go-micro/registry/registry.go
    • Line 9: warning: exported var DefaultRegistry should have comment or be unexported (golint)
    • Line 11: warning: comment on exported var ErrNotFound should be of the form "ErrNotFound ..." (golint)
    • Line 13: warning: comment on exported var ErrWatcherStopped should be of the form "ErrWatcherStopped ..." (golint)
    • Line 24: warning: comment on exported type Registry should be of the form "Registry ..." (with optional leading article) (golint)
    • Line 38: warning: exported type Service should have comment or be unexported (golint)
    • Line 46: warning: exported type Node should have comment or be unexported (golint)
    • Line 52: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 59: warning: exported type Value should have comment or be unexported (golint)
    • Line 75: warning: comment on exported function GetService should be of the form "GetService ..." (golint)
    • Line 80: warning: comment on exported function ListServices should be of the form "ListServices ..." (golint)
    • Line 90: warning: exported function String should have comment or be unexported (golint)
    • go-micro/server/mock/mock_subscriber.go
    • Line 8: warning: exported type MockSubscriber should have comment or be unexported (golint)
    • Line 14: warning: exported method MockSubscriber.Topic should have comment or be unexported (golint)
    • Line 18: warning: exported method MockSubscriber.Subscriber should have comment or be unexported (golint)
    • Line 22: warning: exported method MockSubscriber.Endpoints should have comment or be unexported (golint)
    • Line 26: warning: exported method MockSubscriber.Options should have comment or be unexported (golint)
    • go-micro/server/context.go
    • Line 21: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 26: warning: exported function NewContext should have comment or be unexported (golint)
    • go-micro/runtime/local/source/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 8: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: comment on exported function Path should be of the form "Path ..." (golint)
    • go-micro/runtime/local/build/docker/docker.go
    • Line 16: warning: exported type Builder should have comment or be unexported (golint)
    • Line 21: warning: exported method Builder.Build should have comment or be unexported (golint)
    • Line 74: warning: exported method Builder.Clean should have comment or be unexported (golint)
    • Line 79: warning: exported function NewBuilder should have comment or be unexported (golint)
    • go-micro/util/kubernetes/client/client.go
    • Line 36: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 271: warning: comment on exported function NewDeployment should be of the form "NewDeployment ..." (golint)
    • go-micro/codec/json/json.go
    • Line 13: warning: exported type Codec should have comment or be unexported (golint)
    • Line 19: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 23: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 40: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 48: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/server/mock/mock.go
    • Line 11: warning: exported type MockServer should have comment or be unexported (golint)
    • Line 37: warning: exported method MockServer.Options should have comment or be unexported (golint)
    • Line 44: warning: exported method MockServer.Init should have comment or be unexported (golint)
    • Line 54: warning: exported method MockServer.Handle should have comment or be unexported (golint)
    • Line 65: warning: exported method MockServer.NewHandler should have comment or be unexported (golint)
    • Line 78: warning: exported method MockServer.NewSubscriber should have comment or be unexported (golint)
    • Line 91: warning: exported method MockServer.Subscribe should have comment or be unexported (golint)
    • Line 101: warning: exported method MockServer.Register should have comment or be unexported (golint)
    • Line 105: warning: exported method MockServer.Deregister should have comment or be unexported (golint)
    • Line 109: warning: exported method MockServer.Start should have comment or be unexported (golint)
    • Line 121: warning: exported method MockServer.Stop should have comment or be unexported (golint)
    • Line 137: warning: exported function NewServer should have comment or be unexported (golint)
    • go-micro/api/handler/options.go
    • Line 10: warning: exported var DefaultMaxRecvSize should have comment or be unexported (golint)
    • Line 13: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported type Option should have comment or be unexported (golint)
    • Line 59: warning: exported function WithClient should have comment or be unexported (golint)
    • Line 65: warning: comment on exported function WithMaxRecvSize should be of the form "WithMaxRecvSize ..." (golint)
    • go-micro/codec/text/text.go
    • Line 12: warning: exported type Codec should have comment or be unexported (golint)
    • Line 21: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 25: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 66: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 74: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/api/handler/rpc/rpc.go
    • Line 32: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 126: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 239: warning: receiver name rh should be consistent with previous receiver name h for rpcHandler (golint)
    • Line 523: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 530: warning: exported function WithService should have comment or be unexported (golint)
    • go-micro/debug/service/handler/debug.go
    • Line 26: warning: exported type Debug should have comment or be unexported (golint)
    • Line 39: warning: exported method Debug.Health should have comment or be unexported (golint)
    • Line 44: warning: exported method Debug.Stats should have comment or be unexported (golint)
    • Line 67: warning: exported method Debug.Trace should have comment or be unexported (golint)
    • Line 96: warning: exported method Debug.Log should have comment or be unexported (golint)
    • go-micro/config/source/service/options.go
    • Line 13: warning: exported function ServiceName should have comment or be unexported (golint)
    • Line 22: warning: exported function Namespace should have comment or be unexported (golint)
    • Line 31: warning: exported function Path should have comment or be unexported (golint)
    • go-micro/broker/http.go
    • Line 1: warning: package comment should be of the form "Package broker ..." (golint)
    • Line 68: warning: exported var DefaultPath should have comment or be unexported (golint)
    • go-micro/api/api.go
    • Line 12: warning: exported type Api should have comment or be unexported (golint)
    • Line 25: warning: exported type Options should have comment or be unexported (golint)
    • Line 27: warning: exported type Option should have comment or be unexported (golint)
    • go-micro/codec/codec.go
    • Line 10: warning: exported const Error should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported var ErrInvalidMessage should have comment or be unexported (golint)
    • Line 20: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type NewCodec should be of the form "NewCodec ..." (with optional leading article) (golint)
    • Line 37: warning: exported type Reader should have comment or be unexported (golint)
    • Line 42: warning: exported type Writer should have comment or be unexported (golint)
    • go-micro/codec/bytes/bytes.go
    • Line 12: warning: exported type Codec should have comment or be unexported (golint)
    • Line 21: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 25: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 60: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 68: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/api/resolver/vpath/vpath.go
    • Line 13: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 17: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 25: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • go-micro/client/retry.go
    • Line 9: warning: comment on exported type RetryFunc should be of the form "RetryFunc ..." (with optional leading article) (golint)
    • go-micro/logger/level.go
    • Line 8: warning: exported type Level should have comment or be unexported (golint)
    • Line 69: warning: exported function Info should have comment or be unexported (golint)
    • Line 73: warning: exported function Infof should have comment or be unexported (golint)
    • Line 77: warning: exported function Trace should have comment or be unexported (golint)
    • Line 81: warning: exported function Tracef should have comment or be unexported (golint)
    • Line 85: warning: exported function Debug should have comment or be unexported (golint)
    • Line 89: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 93: warning: exported function Warn should have comment or be unexported (golint)
    • Line 97: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 101: warning: exported function Error should have comment or be unexported (golint)
    • Line 105: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 109: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 114: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 119: warning: comment on exported function V should be of the form "V ..." (golint)
    • go-micro/registry/cache/cache.go
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 28: warning: exported type Option should have comment or be unexported (golint)
    • Line 52: warning: exported var DefaultTTL should have comment or be unexported (golint)
    • go-micro/runtime/local/build/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 8: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: comment on exported function Path should be of the form "Path ..." (golint)
    • go-micro/resolver/api/api.go
    • Line 1: warning: package comment should be of the form "Package api ..." (golint)
    • Line 11: warning: comment on exported type Resolver should be of the form "Resolver ..." (with optional leading article) (golint)
    • Line 19: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • go-micro/api/resolver/host/host.go
    • Line 10: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 14: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 30: warning: exported function NewResolver should have comment or be unexported (golint)
    • go-micro/api/server/options.go
    • Line 11: warning: exported type Option should have comment or be unexported (golint)
    • Line 13: warning: exported type Options should have comment or be unexported (golint)
    • Line 24: warning: exported type Wrapper should have comment or be unexported (golint)
    • Line 26: warning: exported function WrapHandler should have comment or be unexported (golint)
    • Line 32: warning: exported function EnableCORS should have comment or be unexported (golint)
    • Line 38: warning: exported function EnableACME should have comment or be unexported (golint)
    • Line 44: warning: exported function ACMEHosts should have comment or be unexported (golint)
    • Line 50: warning: exported function ACMEProvider should have comment or be unexported (golint)
    • Line 56: warning: exported function EnableTLS should have comment or be unexported (golint)
    • Line 62: warning: exported function TLSConfig should have comment or be unexported (golint)
    • Line 68: warning: exported function Resolver should have comment or be unexported (golint)
    • go-micro/server/mock/mock_handler.go
    • Line 8: warning: exported type MockHandler should have comment or be unexported (golint)
    • Line 14: warning: exported method MockHandler.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method MockHandler.Handler should have comment or be unexported (golint)
    • Line 22: warning: exported method MockHandler.Endpoints should have comment or be unexported (golint)
    • Line 26: warning: exported method MockHandler.Options should have comment or be unexported (golint)
    • go-micro/util/scope/scope.go
    • Line 20: warning: exported method Scope.Options should have comment or be unexported (golint)
    • Line 36: warning: exported method Scope.Delete should have comment or be unexported (golint)
    • Line 41: warning: exported method Scope.List should have comment or be unexported (golint)
    • go-micro/transport/options.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 31: warning: exported type DialOptions should have comment or be unexported (golint)
    • Line 46: warning: exported type ListenOptions should have comment or be unexported (golint)
    • Line 77: warning: comment on exported function Secure should be of the form "Secure ..." (golint)
    • Line 92: warning: comment on exported function WithStream should be of the form "WithStream ..." (golint)
    • Line 99: warning: comment on exported function WithTimeout should be of the form "WithTimeout ..." (golint)
    • go-micro/server/server.go
    • Line 137: warning: exported type Option should have comment or be unexported (golint)
    • Line 140: warning: exported var DefaultAddress should have comment or be unexported (golint)
    • go-micro/logger/context.go
    • Line 7: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 12: warning: exported function NewContext should have comment or be unexported (golint)
    • go-micro/util/pool/pool.go
    • Line 20: warning: exported type Conn should have comment or be unexported (golint)
    • Line 29: warning: exported function NewPool should have comment or be unexported (golint)
    • go-micro/server/grpc/grpc.go
    • Line 322: warning: context.Context should be the first parameter of a function (golint)
    • Line 432: warning: context.Context should be the first parameter of a function (golint)
    • Line 1004: warning: exported function NewServer should have comment or be unexported (golint)
    • go-micro/runtime/options.go
    • Line 10: warning: exported type Option should have comment or be unexported (golint)
    • Line 61: warning: exported type CreateOption should have comment or be unexported (golint)
    • Line 63: warning: exported type ReadOption should have comment or be unexported (golint)
    • Line 201: warning: exported type UpdateOption should have comment or be unexported (golint)
    • Line 203: warning: exported type UpdateOptions should have comment or be unexported (golint)
    • Line 224: warning: exported type DeleteOption should have comment or be unexported (golint)
    • Line 226: warning: exported type DeleteOptions should have comment or be unexported (golint)
    • Line 262: warning: comment on exported function LogsCount should be of the form "LogsCount ..." (golint)
    • go-micro/util/kubernetes/client/options.go
    • Line 3: warning: exported type CreateOptions should have comment or be unexported (golint)
    • Line 7: warning: exported type GetOptions should have comment or be unexported (golint)
    • Line 11: warning: exported type UpdateOptions should have comment or be unexported (golint)
    • Line 14: warning: exported type DeleteOptions should have comment or be unexported (golint)
    • Line 17: warning: exported type ListOptions should have comment or be unexported (golint)
    • Line 21: warning: exported type LogOptions should have comment or be unexported (golint)
    • Line 26: warning: exported type WatchOptions should have comment or be unexported (golint)
    • Line 31: warning: exported type CreateOption should have comment or be unexported (golint)
    • Line 32: warning: exported type GetOption should have comment or be unexported (golint)
    • Line 33: warning: exported type UpdateOption should have comment or be unexported (golint)
    • Line 34: warning: exported type DeleteOption should have comment or be unexported (golint)
    • Line 35: warning: exported type ListOption should have comment or be unexported (golint)
    • Line 36: warning: exported type LogOption should have comment or be unexported (golint)
    • Line 37: warning: exported type WatchOption should have comment or be unexported (golint)
    • go-micro/debug/stats/stats.go
    • Line 14: warning: comment on exported type Stat should be of the form "Stat ..." (with optional leading article) (golint)
    • Line 35: warning: exported var DefaultStats should have comment or be unexported (golint)
    • go-micro/util/mux/mux.go
    • Line 26: warning: exported method Server.ProcessMessage should have comment or be unexported (golint)
    • Line 33: warning: exported method Server.ServeRequest should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • go-micro/api/resolver/grpc/grpc.go
    • Line 12: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 16: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 42: warning: exported function NewResolver should have comment or be unexported (golint)
    • go-micro/api/router/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 15: warning: exported type Option should have comment or be unexported (golint)
    • Line 17: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 36: warning: exported function WithHandler should have comment or be unexported (golint)
    • Line 42: warning: exported function WithRegistry should have comment or be unexported (golint)
    • Line 48: warning: exported function WithResolver should have comment or be unexported (golint)
    • go-micro/debug/trace/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 8: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: exported type ReadOptions should have comment or be unexported (golint)
    • Line 15: warning: exported type ReadOption should have comment or be unexported (golint)
    • Line 17: warning: comment on exported function ReadTrace should be of the form "ReadTrace ..." (golint)

gocyclo91%

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-micro/server/rpc_server.go
    • Line 803: warning: cyclomatic complexity 37 of function (*rpcServer).Start() is high (> 15) (gocyclo)
    • Line 133: warning: cyclomatic complexity 36 of function (*rpcServer).ServeConn() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 30 of function (*rpcServer).Register() is high (> 15) (gocyclo)
    • go-micro/api/handler/rpc/rpc.go
    • Line 255: warning: cyclomatic complexity 43 of function requestPayload() is high (> 15) (gocyclo)
    • Line 77: warning: cyclomatic complexity 21 of function (*rpcHandler).ServeHTTP() is high (> 15) (gocyclo)
    • go-micro/tunnel/link.go
    • Line 230: warning: cyclomatic complexity 18 of function (*link).manage() is high (> 15) (gocyclo)
    • Line 172: warning: cyclomatic complexity 16 of function (*link).process() is high (> 15) (gocyclo)
    • go-micro/router/default.go
    • Line 264: warning: cyclomatic complexity 29 of function (*router).advertiseEvents() is high (> 15) (gocyclo)
    • Line 403: warning: cyclomatic complexity 16 of function (*router).Start() is high (> 15) (gocyclo)
    • go-micro/tunnel/default.go
    • Line 594: warning: cyclomatic complexity 55 of function (*tun).listen() is high (> 15) (gocyclo)
    • Line 1166: warning: cyclomatic complexity 27 of function (*tun).Dial() is high (> 15) (gocyclo)
    • Line 383: warning: cyclomatic complexity 17 of function (*tun).process() is high (> 15) (gocyclo)
    • go-micro/proxy/mucp/mucp.go
    • Line 343: warning: cyclomatic complexity 19 of function (*Proxy).ServeRequest() is high (> 15) (gocyclo)
    • Line 478: warning: cyclomatic complexity 16 of function (*Proxy).serveRequest() is high (> 15) (gocyclo)
    • Line 111: warning: cyclomatic complexity 16 of function (*Proxy).filterRoutes() is high (> 15) (gocyclo)
    • go-micro/client/grpc/grpc.go
    • Line 389: warning: cyclomatic complexity 20 of function (*grpcClient).Call() is high (> 15) (gocyclo)
    • Line 501: warning: cyclomatic complexity 16 of function (*grpcClient).Stream() is high (> 15) (gocyclo)
    • go-micro/client/rpc_client.go
    • Line 360: warning: cyclomatic complexity 18 of function (*rpcClient).Call() is high (> 15) (gocyclo)
    • Line 471: warning: cyclomatic complexity 16 of function (*rpcClient).Stream() is high (> 15) (gocyclo)
    • go-micro/registry/etcd/etcd.go
    • Line 141: warning: cyclomatic complexity 26 of function (*etcdRegistry).registerNode() is high (> 15) (gocyclo)
    • Line 47: warning: cyclomatic complexity 17 of function configure() is high (> 15) (gocyclo)
    • go-micro/network/default.go
    • Line 766: warning: cyclomatic complexity 63 of function (*network).processNetChan() is high (> 15) (gocyclo)
    • Line 1175: warning: cyclomatic complexity 42 of function (*network).manage() is high (> 15) (gocyclo)
    • Line 636: warning: cyclomatic complexity 24 of function (*network).processCtrlChan() is high (> 15) (gocyclo)
    • Line 1445: warning: cyclomatic complexity 16 of function (*network).sendTo() is high (> 15) (gocyclo)
    • go-micro/server/grpc/grpc.go
    • Line 827: warning: cyclomatic complexity 31 of function (*grpcServer).Start() is high (> 15) (gocyclo)
    • Line 569: warning: cyclomatic complexity 27 of function (*grpcServer).Register() is high (> 15) (gocyclo)
    • Line 186: warning: cyclomatic complexity 19 of function (*grpcServer).handler() is high (> 15) (gocyclo)
    • Line 322: warning: cyclomatic complexity 18 of function (*grpcServer).processRequest() is high (> 15) (gocyclo)

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!