// commitMessage returns the current message and sets the message pointer to
// nil.
commitMessage returns the current message and sets the message pointer to
nil.
// commitMessage returns the current message and sets the message pointer to // nil .
func (r *MessageReader) commitMessage(newmsg *Message) *Message {
	msg := r.message
	r.message = newmsg
	return msg
}
func ( r * MessageReader ) commitMessage ( newmsg * Message ) * Message { msg := r . message r . message = newmsg return msg }
commitMessage returns the current message and sets the message pointer to
nil.
commitMessage returns the current message and sets the message pointer to nil .