xml

package
v0.0.0-...-c05fae0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package xml implements a request decoder and a response necoder for XML data. When this package is imported the encoder and decoder are automatically registered.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader, _ mediatype.MediaType, v any) (err error)

Decode reads data from r into v.

func Encode

func Encode(w io.Writer, v any) (err error)

Encode marshals 'v' to Encode. It will automatically prepend a generic Encode header (see encoding/xml.Header) if one is not found in the first 100 bytes of 'v'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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