WriteMapStrIntf writes a map[string]interface to the writer
(mp map[string]any)
| 604 | |
| 605 | // WriteMapStrIntf writes a map[string]interface to the writer |
| 606 | func (mw *Writer) WriteMapStrIntf(mp map[string]any) (err error) { |
| 607 | err = mw.WriteMapHeader(uint32(len(mp))) |
| 608 | if err != nil { |
| 609 | return |
| 610 | } |
| 611 | for key, val := range mp { |
| 612 | err = mw.WriteString(key) |
| 613 | if err != nil { |
| 614 | return |
| 615 | } |
| 616 | err = mw.WriteIntf(val) |
| 617 | if err != nil { |
| 618 | return |
| 619 | } |
| 620 | } |
| 621 | return |
| 622 | } |
| 623 | |
| 624 | // WriteTime writes a time.Time object to the wire. |
| 625 | // |
no test coverage detected