EndArray writes out the ']' symbol.
()
| 219 | |
| 220 | // EndArray writes out the ']' symbol. |
| 221 | func (e *Encoder) EndArray() { |
| 222 | e.prepareNext(arrayClose) |
| 223 | e.out = append(e.out, ']') |
| 224 | } |
| 225 | |
| 226 | // prepareNext adds possible comma and indentation for the next value based |
| 227 | // on last type and indent option. It also updates lastKind to next. |