NewEncoder returns an XML encoder
(w writer)
| 29 | |
| 30 | // NewEncoder returns an XML encoder |
| 31 | func NewEncoder(w writer) *Encoder { |
| 32 | scratch := make([]byte, 64) |
| 33 | |
| 34 | return &Encoder{w: w, scratch: &scratch} |
| 35 | } |
| 36 | |
| 37 | // String returns the string output of the XML encoder |
| 38 | func (e Encoder) String() string { |
no outgoing calls