diff --git a/message.go b/message.go index 4779f40c..b496451d 100644 --- a/message.go +++ b/message.go @@ -140,14 +140,14 @@ func (m *Message) WriteTo(w io.Writer) (int64, error) { // DecodeMessage deserializes data (as []byte) and creates a new Message // message format: -// [x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x]... -// | (int64) || || (hex string encoded in ASCII) || (binary) -// | 8-byte || || 16-byte || N-byte -// ------------------------------------------------------------------------------------------... -// nanosecond timestamp ^^ message ID message body -// (uint16) -// 2-byte -// attempts +// [x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x]... +// | (int64) || || (hex string encoded in ASCII) || (binary) +// | 8-byte || || 16-byte || N-byte +// ------------------------------------------------------------------------------------------... +// nanosecond timestamp ^^ message ID message body +// (uint16) +// 2-byte +// attempts func DecodeMessage(b []byte) (*Message, error) { var msg Message