Documentation
¶
Overview ¶
Package core implements XML decoding, streaming, and encoding logic.
Index ¶
- func Attr(ctx context.Context, value runtime.Value, name runtime.String) (runtime.Value, error)
- func Children(ctx context.Context, value runtime.Value) (runtime.Value, error)
- func Decode(ctx context.Context, data runtime.String) (runtime.Value, error)
- func Encode(ctx context.Context, value runtime.Value) (string, error)
- func ResolveContent(input runtime.Value) (runtime.String, error)
- func Root(ctx context.Context, value runtime.Value) (runtime.Value, error)
- func Text(ctx context.Context, value runtime.Value) (runtime.Value, error)
- type DecodeIterator
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveContent ¶
ResolveContent normalizes supported XML content input to a runtime.String. It accepts only runtime.String and runtime.Binary values.
Types ¶
type DecodeIterator ¶
type DecodeIterator struct {
// contains filtered or unexported fields
}
DecodeIterator iterates over normalized XML events.
func NewDecodeIterator ¶
func NewDecodeIterator(data runtime.String) (*DecodeIterator, error)
NewDecodeIterator returns an iterator over normalized XML events.
func NewDecodeIteratorFromReader ¶
func NewDecodeIteratorFromReader(reader io.Reader) (*DecodeIterator, error)
NewDecodeIteratorFromReader returns an iterator over normalized XML events read directly from an io.Reader.
Click to show internal directories.
Click to hide internal directories.