MCPcopy Index your code
hub / github.com/tinylib/msgp / WriteMapStrIntf

Method WriteMapStrIntf

msgp/write.go:606–622  ·  view source on GitHub ↗

WriteMapStrIntf writes a map[string]interface to the writer

(mp map[string]any)

Source from the content-addressed store, hash-verified

604
605// WriteMapStrIntf writes a map[string]interface to the writer
606func (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//

Callers 1

WriteIntfMethod · 0.95

Calls 3

WriteMapHeaderMethod · 0.95
WriteStringMethod · 0.95
WriteIntfMethod · 0.95

Tested by

no test coverage detected