diff --git a/chat/message.go b/chat/message.go index f80c05b..a2b15a6 100644 --- a/chat/message.go +++ b/chat/message.go @@ -134,6 +134,8 @@ func (m Message) WriteTo(w io.Writer) (int64, error) { return pk.String(code).WriteTo(w) } +// Append extra message to the end of the message and return the new one. +// The source message remains unchanged. func (m Message) Append(extraMsg ...Message) Message { origLen := len(m.Extra) finalLen := origLen + len(extraMsg)