MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / Marshaler

Interface Marshaler

opensca/sca/java/xml/marshal.go:108–110  ·  view source on GitHub ↗

Marshaler is the interface implemented by objects that can marshal themselves into valid XML elements. MarshalXML encodes the receiver as zero or more XML elements. By convention, arrays or slices are typically encoded as a sequence of elements, one per entry. Using start as the element tag is not

Source from the content-addressed store, hash-verified

106// The sequence of encoded tokens must make up zero or more valid
107// XML elements.
108type Marshaler interface {
109 MarshalXML(e *Encoder, start StartElement) error
110}
111
112// MarshalerAttr is the interface implemented by objects that can marshal
113// themselves into valid XML attributes.

Callers 1

marshalInterfaceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected