Preparing report...

Report for github.com/yutopp/go-rtmp

A+    Excellent!    Found 38 issues across 71 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!


golint50%

Golint is a linter for Go source code.

    • go-rtmp/example/server_relay_demo/handler.go
    • Line 29: warning: exported method Handler.OnServe should have comment or be unexported (golint)
    • Line 33: warning: exported method Handler.OnConnect should have comment or be unexported (golint)
    • Line 42: warning: exported method Handler.OnCreateStream should have comment or be unexported (golint)
    • Line 47: warning: exported method Handler.OnPublish should have comment or be unexported (golint)
    • Line 71: warning: exported method Handler.OnPlay should have comment or be unexported (golint)
    • Line 89: warning: exported method Handler.OnSetDataFrame should have comment or be unexported (golint)
    • Line 109: warning: exported method Handler.OnAudio should have comment or be unexported (golint)
    • Line 130: warning: exported method Handler.OnVideo should have comment or be unexported (golint)
    • Line 152: warning: exported method Handler.OnClose should have comment or be unexported (golint)
    • go-rtmp/example/server_relay_demo/relay_service.go
    • Line 8: warning: comment on exported type RelayService should be of the form "RelayService ..." (with optional leading article) (golint)
    • Line 15: warning: exported function NewRelayService should have comment or be unexported (golint)
    • Line 21: warning: exported method RelayService.NewPubsub should have comment or be unexported (golint)
    • Line 36: warning: exported method RelayService.GetPubsub should have comment or be unexported (golint)
    • Line 48: warning: exported method RelayService.RemovePubsub should have comment or be unexported (golint)
    • go-rtmp/message/body_decoder.go
    • Line 17: warning: exported type BodyDecoderFunc should have comment or be unexported (golint)
    • Line 19: warning: exported var DataBodyDecoders should have comment or be unexported (golint)
    • Line 23: warning: exported function DataBodyDecoderFor should have comment or be unexported (golint)
    • Line 46: warning: exported function DecodeBodyAtSetDataFrame should have comment or be unexported (golint)
    • Line 62: warning: exported var CmdBodyDecoders should have comment or be unexported (golint)
    • Line 76: warning: exported function CmdBodyDecoderFor should have comment or be unexported (golint)
    • Line 102: warning: exported function DecodeBodyConnect should have comment or be unexported (golint)
    • Line 117: warning: exported function DecodeBodyConnectResult should have comment or be unexported (golint)
    • Line 137: warning: exported function DecodeBodyCreateStream should have comment or be unexported (golint)
    • Line 152: warning: exported function DecodeBodyCreateStreamResult should have comment or be unexported (golint)
    • Line 172: warning: exported function DecodeBodyDeleteStream should have comment or be unexported (golint)
    • Line 192: warning: exported function DecodeBodyPublish should have comment or be unexported (golint)
    • Line 215: warning: exported function DecodeBodyPlay should have comment or be unexported (golint)
    • Line 246: warning: exported function DecodeBodyReleaseStream should have comment or be unexported (golint)
    • Line 265: warning: exported function DecodeBodyFCPublish should have comment or be unexported (golint)
    • Line 284: warning: exported function DecodeBodyFCUnpublish should have comment or be unexported (golint)
    • Line 303: warning: exported function DecodeBodyGetStreamLength should have comment or be unexported (golint)
    • Line 322: warning: exported function DecodeBodyPing should have comment or be unexported (golint)
    • Line 337: warning: exported function DecodeBodyCloseStream should have comment or be unexported (golint)
    • go-rtmp/chunk_streamer.go
    • Line 27: warning: exported type ChunkMessage should have comment or be unexported (golint)
    • Line 32: warning: exported type ChunkStreamer should have comment or be unexported (golint)
    • Line 58: warning: exported function NewChunkStreamer should have comment or be unexported (golint)
    • Line 137: warning: exported method ChunkStreamer.NewChunkReader should have comment or be unexported (golint)
    • Line 170: warning: exported method ChunkStreamer.Sched should have comment or be unexported (golint)
    • Line 174: warning: exported method ChunkStreamer.SelfState should have comment or be unexported (golint)
    • Line 178: warning: exported method ChunkStreamer.PeerState should have comment or be unexported (golint)
    • Line 182: warning: exported method ChunkStreamer.Done should have comment or be unexported (golint)
    • Line 186: warning: exported method ChunkStreamer.Err should have comment or be unexported (golint)
    • Line 190: warning: exported method ChunkStreamer.Close should have comment or be unexported (golint)
    • go-rtmp/internal/error.go
    • Line 14: warning: exported var ErrChunkIsNotCompleted should have comment or be unexported (golint)
    • Line 15: warning: exported var ErrPassThroughMsg should have comment or be unexported (golint)
    • go-rtmp/handshake/handshake.go
    • Line 19: warning: exported type S0C0 should have comment or be unexported (golint)
    • Line 21: warning: exported type S1C1 should have comment or be unexported (golint)
    • Line 27: warning: exported type S2C2 should have comment or be unexported (golint)
    • Line 33: warning: exported var RTMPVersion should have comment or be unexported (golint)
    • Line 35: warning: exported var Version should have comment or be unexported (golint)
    • Line 39: warning: exported type Config should have comment or be unexported (golint)
    • Line 43: warning: exported function HandshakeWithClient should have comment or be unexported (golint)
    • Line 109: warning: exported function HandshakeWithServer should have comment or be unexported (golint)
    • go-rtmp/message/net_connection.go
    • Line 16: warning: comment on exported type NetConnectionConnectCode should be of the form "NetConnectionConnectCode ..." (with optional leading article) (golint)
    • Line 20: warning: exported const NetConnectionConnectCodeSuccess should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported type NetConnectionConnect should be of the form "NetConnectionConnect ..." (with optional leading article) (golint)
    • Line 30: warning: exported type NetConnectionConnectCommand should have comment or be unexported (golint)
    • Line 43: warning: exported method NetConnectionConnect.FromArgs should have comment or be unexported (golint)
    • Line 52: warning: exported method NetConnectionConnect.ToArgs should have comment or be unexported (golint)
    • Line 58: warning: comment on exported type NetConnectionConnectResult should be of the form "NetConnectionConnectResult ..." (with optional leading article) (golint)
    • Line 64: warning: exported type NetConnectionConnectResultProperties should have comment or be unexported (golint)
    • Line 70: warning: exported type NetConnectionConnectResultInformation should have comment or be unexported (golint)
    • Line 77: warning: exported method NetConnectionConnectResult.FromArgs should have comment or be unexported (golint)
    • Line 91: warning: exported method NetConnectionConnectResult.ToArgs should have comment or be unexported (golint)
    • Line 98: warning: comment on exported type NetConnectionCreateStream should be of the form "NetConnectionCreateStream ..." (with optional leading article) (golint)
    • Line 102: warning: exported method NetConnectionCreateStream.FromArgs should have comment or be unexported (golint)
    • Line 107: warning: exported method NetConnectionCreateStream.ToArgs should have comment or be unexported (golint)
    • Line 113: warning: comment on exported type NetConnectionCreateStreamResult should be of the form "NetConnectionCreateStreamResult ..." (with optional leading article) (golint)
    • Line 118: warning: exported method NetConnectionCreateStreamResult.FromArgs should have comment or be unexported (golint)
    • Line 125: warning: exported method NetConnectionCreateStreamResult.ToArgs should have comment or be unexported (golint)
    • Line 132: warning: comment on exported type NetConnectionReleaseStream should be of the form "NetConnectionReleaseStream ..." (with optional leading article) (golint)
    • Line 137: warning: exported method NetConnectionReleaseStream.FromArgs should have comment or be unexported (golint)
    • Line 144: warning: exported method NetConnectionReleaseStream.ToArgs should have comment or be unexported (golint)
    • go-rtmp/chunk_stream_writer.go
    • Line 15: warning: exported type ChunkStreamWriter should have comment or be unexported (golint)
    • Line 28: warning: exported method ChunkStreamWriter.Wait should have comment or be unexported (golint)
    • go-rtmp/error.go
    • Line 18: warning: exported var ErrClosed should have comment or be unexported (golint)
    • Line 20: warning: exported type ConnectRejectedError should have comment or be unexported (golint)
    • Line 33: warning: exported type CreateStreamRejectedError should have comment or be unexported (golint)
    • go-rtmp/message/decoder.go
    • Line 20: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 24: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 30: warning: exported method Decoder.Reset should have comment or be unexported (golint)
    • Line 34: warning: exported method Decoder.Decode should have comment or be unexported (golint)
    • go-rtmp/chunk_streamer_reader.go
    • Line 14: warning: exported type ChunkStreamerReader should have comment or be unexported (golint)
    • Line 27: warning: exported method ChunkStreamerReader.TotalReadBytes should have comment or be unexported (golint)
    • Line 31: warning: exported method ChunkStreamerReader.FragmentReadBytes should have comment or be unexported (golint)
    • Line 35: warning: exported method ChunkStreamerReader.ResetFragmentReadBytes should have comment or be unexported (golint)
    • go-rtmp/message/net_stream.go
    • Line 10: warning: comment on exported type NetStreamPublish should be of the form "NetStreamPublish ..." (with optional leading article) (golint)
    • Line 17: warning: exported method NetStreamPublish.FromArgs should have comment or be unexported (golint)
    • Line 25: warning: exported method NetStreamPublish.ToArgs should have comment or be unexported (golint)
    • Line 33: warning: comment on exported type NetStreamPlay should be of the form "NetStreamPlay ..." (with optional leading article) (golint)
    • Line 40: warning: exported method NetStreamPlay.FromArgs should have comment or be unexported (golint)
    • Line 48: warning: exported method NetStreamPlay.ToArgs should have comment or be unexported (golint)
    • Line 52: warning: comment on exported type NetStreamOnStatusLevel should be of the form "NetStreamOnStatusLevel ..." (with optional leading article) (golint)
    • Line 56: warning: exported const NetStreamOnStatusLevelStatus should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported type NetStreamOnStatusCode should have comment or be unexported (golint)
    • Line 63: warning: exported const NetStreamOnStatusCodeConnectSuccess should have comment (or a comment on this block) or be unexported (golint)
    • Line 75: warning: exported type NetStreamOnStatus should have comment or be unexported (golint)
    • Line 79: warning: exported type NetStreamOnStatusInfoObject should have comment or be unexported (golint)
    • Line 85: warning: exported method NetStreamOnStatus.FromArgs should have comment or be unexported (golint)
    • Line 89: warning: exported method NetStreamOnStatus.ToArgs should have comment or be unexported (golint)
    • Line 101: warning: comment on exported type NetStreamDeleteStream should be of the form "NetStreamDeleteStream ..." (with optional leading article) (golint)
    • Line 106: warning: exported method NetStreamDeleteStream.FromArgs should have comment or be unexported (golint)
    • Line 113: warning: exported method NetStreamDeleteStream.ToArgs should have comment or be unexported (golint)
    • Line 117: warning: comment on exported type NetStreamFCPublish should be of the form "NetStreamFCPublish ..." (with optional leading article) (golint)
    • Line 122: warning: exported method NetStreamFCPublish.FromArgs should have comment or be unexported (golint)
    • Line 129: warning: exported method NetStreamFCPublish.ToArgs should have comment or be unexported (golint)
    • Line 136: warning: comment on exported type NetStreamFCUnpublish should be of the form "NetStreamFCUnpublish ..." (with optional leading article) (golint)
    • Line 141: warning: exported method NetStreamFCUnpublish.FromArgs should have comment or be unexported (golint)
    • Line 148: warning: exported method NetStreamFCUnpublish.ToArgs should have comment or be unexported (golint)
    • Line 155: warning: exported type NetStreamReleaseStream should have comment or be unexported (golint)
    • Line 159: warning: exported method NetStreamReleaseStream.FromArgs should have comment or be unexported (golint)
    • Line 166: warning: exported method NetStreamReleaseStream.ToArgs should have comment or be unexported (golint)
    • Line 179: warning: exported method NetStreamSetDataFrame.FromArgs should have comment or be unexported (golint)
    • Line 184: warning: exported method NetStreamSetDataFrame.ToArgs should have comment or be unexported (golint)
    • Line 191: warning: comment on exported type NetStreamGetStreamLength should be of the form "NetStreamGetStreamLength ..." (with optional leading article) (golint)
    • Line 196: warning: exported method NetStreamGetStreamLength.FromArgs should have comment or be unexported (golint)
    • Line 203: warning: exported method NetStreamGetStreamLength.ToArgs should have comment or be unexported (golint)
    • Line 210: warning: comment on exported type NetStreamPing should be of the form "NetStreamPing ..." (with optional leading article) (golint)
    • Line 214: warning: exported method NetStreamPing.FromArgs should have comment or be unexported (golint)
    • Line 220: warning: exported method NetStreamPing.ToArgs should have comment or be unexported (golint)
    • Line 226: warning: comment on exported type NetStreamCloseStream should be of the form "NetStreamCloseStream ..." (with optional leading article) (golint)
    • Line 230: warning: exported method NetStreamCloseStream.FromArgs should have comment or be unexported (golint)
    • Line 236: warning: exported method NetStreamCloseStream.ToArgs should have comment or be unexported (golint)
    • go-rtmp/message/user_control_event_decoder.go
    • Line 17: warning: exported type UserControlEventDecoder should have comment or be unexported (golint)
    • Line 21: warning: exported function NewUserControlEventDecoder should have comment or be unexported (golint)
    • Line 27: warning: exported method UserControlEventDecoder.Decode should have comment or be unexported (golint)
    • go-rtmp/conn.go
    • Line 24: warning: exported type Conn should have comment or be unexported (golint)
    • Line 41: warning: exported type ConnConfig should have comment or be unexported (golint)
    • Line 108: warning: exported method Conn.Close should have comment or be unexported (golint)
    • go-rtmp/default_handler.go
    • Line 18: warning: exported type DefaultHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method DefaultHandler.OnServe should have comment or be unexported (golint)
    • Line 24: warning: exported method DefaultHandler.OnConnect should have comment or be unexported (golint)
    • Line 28: warning: exported method DefaultHandler.OnCreateStream should have comment or be unexported (golint)
    • Line 32: warning: exported method DefaultHandler.OnReleaseStream should have comment or be unexported (golint)
    • Line 36: warning: exported method DefaultHandler.OnDeleteStream should have comment or be unexported (golint)
    • Line 40: warning: exported method DefaultHandler.OnPublish should have comment or be unexported (golint)
    • Line 44: warning: exported method DefaultHandler.OnPlay should have comment or be unexported (golint)
    • Line 48: warning: exported method DefaultHandler.OnFCPublish should have comment or be unexported (golint)
    • Line 52: warning: exported method DefaultHandler.OnFCUnpublish should have comment or be unexported (golint)
    • Line 56: warning: exported method DefaultHandler.OnSetDataFrame should have comment or be unexported (golint)
    • Line 60: warning: exported method DefaultHandler.OnAudio should have comment or be unexported (golint)
    • Line 64: warning: exported method DefaultHandler.OnVideo should have comment or be unexported (golint)
    • Line 68: warning: exported method DefaultHandler.OnUnknownMessage should have comment or be unexported (golint)
    • Line 72: warning: exported method DefaultHandler.OnUnknownCommandMessage should have comment or be unexported (golint)
    • Line 76: warning: exported method DefaultHandler.OnUnknownDataMessage should have comment or be unexported (golint)
    • Line 80: warning: exported method DefaultHandler.OnClose should have comment or be unexported (golint)
    • go-rtmp/message/amf_convertible.go
    • Line 16: warning: exported type EncodingType should have comment or be unexported (golint)
    • Line 19: warning: exported const EncodingTypeAMF0 should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type AMFConvertible should have comment or be unexported (golint)
    • Line 28: warning: exported type AMFDecoder should have comment or be unexported (golint)
    • Line 33: warning: exported function NewAMFDecoder should have comment or be unexported (golint)
    • Line 44: warning: exported type AMFEncoder should have comment or be unexported (golint)
    • Line 49: warning: exported function NewAMFEncoder should have comment or be unexported (golint)
    • go-rtmp/message/user_control_event_encoder.go
    • Line 17: warning: exported type UserControlEventEncoder should have comment or be unexported (golint)
    • Line 21: warning: exported function NewUserControlEventEncoder should have comment or be unexported (golint)
    • Line 27: warning: exported method UserControlEventEncoder.Encode should have comment or be unexported (golint)
    • go-rtmp/stream.go
    • Line 48: warning: exported method Stream.WriteWinAckSize should have comment or be unexported (golint)
    • Line 52: warning: exported method Stream.WriteSetPeerBandwidth should have comment or be unexported (golint)
    • Line 56: warning: exported method Stream.WriteUserCtrl should have comment or be unexported (golint)
    • Line 60: warning: exported method Stream.Connect should have comment or be unexported (golint)
    • Line 111: warning: exported method Stream.ReplyConnect should have comment or be unexported (golint)
    • Line 132: warning: exported method Stream.CreateStream should have comment or be unexported (golint)
    • Line 192: warning: exported method Stream.ReplyCreateStream should have comment or be unexported (golint)
    • Line 214: warning: exported method Stream.Publish should have comment or be unexported (golint)
    • Line 230: warning: exported method Stream.NotifyStatus should have comment or be unexported (golint)
    • Line 243: warning: exported method Stream.Close should have comment or be unexported (golint)
    • Line 268: warning: exported method Stream.WriteDataMessage should have comment or be unexported (golint)
    • Line 287: warning: exported method Stream.WriteSetChunkSize should have comment or be unexported (golint)
    • go-rtmp/handshake/decoder.go
    • Line 15: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 19: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 25: warning: exported method Decoder.DecodeS0C0 should have comment or be unexported (golint)
    • Line 36: warning: exported method Decoder.DecodeS1C1 should have comment or be unexported (golint)
    • Line 55: warning: exported method Decoder.DecodeS2C2 should have comment or be unexported (golint)
    • go-rtmp/message/encoder.go
    • Line 16: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 20: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 26: warning: exported method Encoder.Reset should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method Encoder.Encode should be of the form "Encode ..." (golint)
    • go-rtmp/message/message.go
    • Line 14: warning: exported type TypeID should have comment or be unexported (golint)
    • Line 17: warning: exported const TypeIDSetChunkSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 44: warning: exported method SetChunkSize.TypeID should have comment or be unexported (golint)
    • Line 53: warning: exported method AbortMessage.TypeID should have comment or be unexported (golint)
    • Line 62: warning: exported method Ack.TypeID should have comment or be unexported (golint)
    • Line 71: warning: exported method UserCtrl.TypeID should have comment or be unexported (golint)
    • Line 80: warning: exported method WinAckSize.TypeID should have comment or be unexported (golint)
    • Line 84: warning: comment on exported type LimitType should be of the form "LimitType ..." (with optional leading article) (golint)
    • Line 88: warning: exported const LimitTypeHard should have comment (or a comment on this block) or be unexported (golint)
    • Line 93: warning: exported type SetPeerBandwidth should have comment or be unexported (golint)
    • Line 98: warning: exported method SetPeerBandwidth.TypeID should have comment or be unexported (golint)
    • Line 102: warning: comment on exported type AudioMessage should be of the form "AudioMessage ..." (with optional leading article) (golint)
    • Line 107: warning: exported method AudioMessage.TypeID should have comment or be unexported (golint)
    • Line 111: warning: comment on exported type VideoMessage should be of the form "VideoMessage ..." (with optional leading article) (golint)
    • Line 116: warning: exported method VideoMessage.TypeID should have comment or be unexported (golint)
    • Line 127: warning: exported method DataMessage.TypeID should have comment or be unexported (golint)
    • Line 142: warning: exported type SharedObjectMessageAMF3 should have comment or be unexported (golint)
    • Line 146: warning: exported method SharedObjectMessageAMF3.TypeID should have comment or be unexported (golint)
    • Line 150: warning: exported type SharedObjectMessageAMF0 should have comment or be unexported (golint)
    • Line 154: warning: exported method SharedObjectMessageAMF0.TypeID should have comment or be unexported (golint)
    • Line 166: warning: exported method CommandMessage.TypeID should have comment or be unexported (golint)
    • Line 181: warning: exported method AggregateMessage.TypeID should have comment or be unexported (golint)
    • go-rtmp/conn_state.go
    • Line 17: warning: exported const DefaultChunkSize should have comment or be unexported (golint)
    • Line 18: warning: exported const MaxChunkSize should have comment or be unexported (golint)
    • Line 20: warning: exported type StreamControlState should have comment or be unexported (golint)
    • Line 29: warning: exported type StreamControlStateConfig should have comment or be unexported (golint)
    • Line 97: warning: exported function NewStreamControlState should have comment or be unexported (golint)
    • Line 112: warning: exported method StreamControlState.ChunkSize should have comment or be unexported (golint)
    • Line 116: warning: exported method StreamControlState.SetChunkSize should have comment or be unexported (golint)
    • Line 130: warning: exported method StreamControlState.AckWindowSize should have comment or be unexported (golint)
    • Line 134: warning: exported method StreamControlState.SetAckWindowSize should have comment or be unexported (golint)
    • Line 144: warning: exported method StreamControlState.BandwidthWindowSize should have comment or be unexported (golint)
    • Line 148: warning: exported method StreamControlState.BandwidthLimitType should have comment or be unexported (golint)
    • go-rtmp/handshake/encoder.go
    • Line 15: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 19: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 25: warning: exported method Encoder.EncodeS0C0 should have comment or be unexported (golint)
    • Line 36: warning: exported method Encoder.EncodeS1C1 should have comment or be unexported (golint)
    • Line 55: warning: exported method Encoder.EncodeS2C2 should have comment or be unexported (golint)
    • go-rtmp/example/server_demo/handler.go
    • Line 27: warning: exported method Handler.OnServe should have comment or be unexported (golint)
    • Line 30: warning: exported method Handler.OnConnect should have comment or be unexported (golint)
    • Line 35: warning: exported method Handler.OnCreateStream should have comment or be unexported (golint)
    • Line 40: warning: exported method Handler.OnPublish should have comment or be unexported (golint)
    • Line 69: warning: exported method Handler.OnSetDataFrame should have comment or be unexported (golint)
    • Line 91: warning: exported method Handler.OnAudio should have comment or be unexported (golint)
    • Line 124: warning: exported method Handler.OnVideo should have comment or be unexported (golint)
    • Line 156: warning: exported method Handler.OnClose should have comment or be unexported (golint)
    • go-rtmp/example/server_relay_demo/pubsub.go
    • Line 10: warning: exported type Pubsub should have comment or be unexported (golint)
    • Line 20: warning: exported function NewPubsub should have comment or be unexported (golint)
    • Line 29: warning: exported method Pubsub.Deregister should have comment or be unexported (golint)
    • Line 40: warning: exported method Pubsub.Pub should have comment or be unexported (golint)
    • Line 50: warning: exported method Pubsub.Sub should have comment or be unexported (golint)
    • Line 62: warning: exported type Pub should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method Pub.Publish should be of the form "Publish ..." (golint)
    • Line 110: warning: exported method Pub.Close should have comment or be unexported (golint)
    • Line 114: warning: exported type Sub should have comment or be unexported (golint)
    • Line 135: warning: exported method Sub.Close should have comment or be unexported (golint)
    • go-rtmp/chunk_streamer_writer.go
    • Line 15: warning: exported type ChunkStreamerWriter should have comment or be unexported (golint)
    • Line 23: warning: exported method ChunkStreamerWriter.Flush should have comment or be unexported (golint)
    • go-rtmp/message/error.go
    • Line 14: warning: exported type UnknownDataBodyDecodeError should have comment or be unexported (golint)
    • Line 23: warning: exported type UnknownCommandBodyDecodeError should have comment or be unexported (golint)
    • go-rtmp/client.go
    • Line 16: warning: exported function Dial should have comment or be unexported (golint)
    • Line 20: warning: exported function DialWithDialer should have comment or be unexported (golint)
    • go-rtmp/client_conn.go
    • Line 52: warning: exported method ClientConn.Close should have comment or be unexported (golint)
    • Line 56: warning: exported method ClientConn.LastError should have comment or be unexported (golint)
    • Line 63: warning: exported method ClientConn.Connect should have comment or be unexported (golint)
    • Line 84: warning: exported method ClientConn.CreateStream should have comment or be unexported (golint)
    • go-rtmp/server.go
    • Line 18: warning: exported type Server should have comment or be unexported (golint)
    • Line 26: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 30: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 36: warning: exported method Server.Serve should have comment or be unexported (golint)
    • Line 60: warning: exported method Server.Close should have comment or be unexported (golint)

gocyclo95%

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!