AddObject adds an object to be encoded. value must implement MarshalerJSONObject.
(v MarshalerJSONObject)
| 139 | // AddObject adds an object to be encoded. |
| 140 | // value must implement MarshalerJSONObject. |
| 141 | func (s *StreamEncoder) AddObject(v MarshalerJSONObject) { |
| 142 | if v.IsNil() { |
| 143 | return |
| 144 | } |
| 145 | s.Encoder.writeByte('{') |
| 146 | v.MarshalJSONObject(s.Encoder) |
| 147 | s.Encoder.writeByte('}') |
| 148 | s.Encoder.writeByte(s.delimiter) |
| 149 | } |
| 150 | |
| 151 | // AddString adds a string to be encoded. |
| 152 | func (s *StreamEncoder) AddString(v string) { |
nothing calls this directly
no test coverage detected