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

Function NewEncoder

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

NewEncoder returns a new encoder that writes to w.

(w io.Writer)

Source from the content-addressed store, hash-verified

147
148// NewEncoder returns a new encoder that writes to w.
149func NewEncoder(w io.Writer) *Encoder {
150 e := &Encoder{printer{w: bufio.NewWriter(w)}}
151 e.p.encoder = e
152 return e
153}
154
155// Indent sets the encoder to generate XML in which each element
156// begins on a new indented line that starts with prefix and is followed by

Callers 2

MarshalFunction · 0.85
MarshalIndentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected