WriteBool writes a bool to the writer
(b bool)
| 484 | |
| 485 | // WriteBool writes a bool to the writer |
| 486 | func (mw *Writer) WriteBool(b bool) error { |
| 487 | if b { |
| 488 | return mw.push(mtrue) |
| 489 | } |
| 490 | return mw.push(mfalse) |
| 491 | } |
| 492 | |
| 493 | // WriteString writes a messagepack string to the writer. |
| 494 | // (This is NOT an implementation of io.StringWriter) |