x/encoding/xml/xml.go
2020-08-18 17:47:14 -07:00

15 lines
222 B
Go

package xml
import (
"encoding/xml"
"io"
)
func Encoder(w io.Writer, e interface{}) error {
return xml.NewEncoder(w).Encode(e)
}
func Decoder(r io.Reader, e interface{}) error {
return xml.NewDecoder(r).Decode(e)
}