Files
x/encoding/xml/xml.go
Colin Henry 54aae5f242
All checks were successful
Go / build (1.23) (push) Successful in 3m51s
big updates: tests, bug fixed, documentation. oh my
2026-01-03 15:53:50 -08:00

18 lines
368 B
Go

// Package xml provides XML encoder and decoder functions.
package xml
import (
"encoding/xml"
"io"
)
// Encoder encodes data as XML to a writer.
func Encoder(w io.Writer, e interface{}) error {
return xml.NewEncoder(w).Encode(e)
}
// Decoder decodes XML data from a reader.
func Decoder(r io.Reader, e interface{}) error {
return xml.NewDecoder(r).Decode(e)
}