xml

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package xml wraps encoding/xml as a codec.Codec implementation registered under Format("xml"). Blank-importing this package is enough to make XML resolvable via the core/data/codec registry.

Package xml — adapts *encoding/xml.Decoder to codec.Decoder.

Package xml — adapts *encoding/xml.Encoder to codec.Encoder.

Index

Constants

This section is empty.

Variables

View Source
var (
	//: register the singleton and expose it as a typed package var.
	Codec codec.Codec = codec.Register(&xmlCodec{})
)

Package-level state: the codec singleton plus the hoisted MIME / extension tables.

Functions

func New

func New() codec.Codec

New returns an XML codec instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL