Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalXML ¶
MarshalXML uses the target version to pick the right XML schema, then converts the Map_t to XML. Returns an error for unsupported versions or if there are errors during the conversion.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder implements the wxx Decoder interface.
func NewDecoder ¶
func NewDecoder(opts ...DecoderOption) *Decoder
NewDecoder returns a Decoder that implements the wxx.Decoder interface. Some features of the decoding pipeline can be configured with options.
type DecoderDiagnostics ¶
type DecoderOption ¶
type DecoderOption func(*decoderOpts)
func WithDecoderDiagnostics ¶
func WithDecoderDiagnostics(buf *DecoderDiagnostics) DecoderOption
WithDecoderDiagnostics captures data from each step of the decoding into buffers.
func WithFixXMLHeaderEncoding ¶
func WithFixXMLHeaderEncoding(enabled bool) DecoderOption
WithFixXMLHeaderEncoding sets the flag for updating the encoding in the XML header.
func WithSkipUncompress ¶
func WithSkipUncompress() DecoderOption
WithSkipUncompress skips the step for running gunzip on the input.
func WithUTF16BEInput ¶
func WithUTF16BEInput(enabled bool) DecoderOption
WithUTF16BEInput sets the flag for running the UTF16/BE to UTF8 conversion on the input.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(opts ...EncoderOption) *Encoder
NewEncoder returns an Encoder that implements the wxx.Encoder interface. Some features of the encoding pipeline can be configured with options.
type EncoderDiagnostics ¶
type EncoderOption ¶
type EncoderOption func(*encoderOpts)
func WithEncoderDiagnostics ¶
func WithEncoderDiagnostics(buf *EncoderDiagnostics) EncoderOption
WithEncoderDiagnostics captures data from each step of the decoding into buffers.
func WithGzipOutput ¶
func WithGzipOutput(enabled bool) EncoderOption
func WithUTF16BEOutput ¶
func WithUTF16BEOutput(enabled bool) EncoderOption
func WithXMLHeader ¶
func WithXMLHeader(enabled bool) EncoderOption