Encoder is an XML encoder that supports construction of XML values using methods. The encoder takes in a writer and maintains a scratch buffer.
| 23 | // Encoder is an XML encoder that supports construction of XML values |
| 24 | // using methods. The encoder takes in a writer and maintains a scratch buffer. |
| 25 | type Encoder struct { |
| 26 | w writer |
| 27 | scratch *[]byte |
| 28 | } |
| 29 | |
| 30 | // NewEncoder returns an XML encoder |
| 31 | func NewEncoder(w writer) *Encoder { |
nothing calls this directly
no outgoing calls
no test coverage detected