String returns the map as a string.
()
| 259 | |
| 260 | // String returns the map as a string. |
| 261 | func (m *IntStrMap) String() string { |
| 262 | if m == nil { |
| 263 | return "" |
| 264 | } |
| 265 | m.lazyInit() |
| 266 | return m.KVMap.String() |
| 267 | } |
| 268 | |
| 269 | // MarshalJSON implements the interface MarshalJSON for json.Marshal. |
| 270 | func (m IntStrMap) MarshalJSON() ([]byte, error) { |