String returns the map as a string.
()
| 298 | |
| 299 | // String returns the map as a string. |
| 300 | func (m *StrAnyMap) String() string { |
| 301 | if m == nil { |
| 302 | return "" |
| 303 | } |
| 304 | m.lazyInit() |
| 305 | return m.KVMap.String() |
| 306 | } |
| 307 | |
| 308 | // MarshalJSON implements the interface MarshalJSON for json.Marshal. |
| 309 | func (m StrAnyMap) MarshalJSON() ([]byte, error) { |