Msg sends the *Event with msg added as the message field if not empty. NOTICE: once this method is called, the *Event should be disposed. Calling Msg twice can have unexpected result.
(msg string)
| 113 | // NOTICE: once this method is called, the *Event should be disposed. |
| 114 | // Calling Msg twice can have unexpected result. |
| 115 | func (e *Event) Msg(msg string) { |
| 116 | if e == nil { |
| 117 | return |
| 118 | } |
| 119 | e.msg(msg) |
| 120 | } |
| 121 | |
| 122 | // Send is equivalent to calling Msg(""). |
| 123 | // |