Close the Encoder, indicating that no more data will be written. It flushes any buffered XML to the underlying writer and returns an error if the written XML is invalid (e.g. by containing unclosed elements).
()
| 312 | // any buffered XML to the underlying writer and returns an error if the |
| 313 | // written XML is invalid (e.g. by containing unclosed elements). |
| 314 | func (enc *Encoder) Close() error { |
| 315 | return enc.p.Close() |
| 316 | } |
| 317 | |
| 318 | type printer struct { |
| 319 | w *bufio.Writer |
no outgoing calls
no test coverage detected