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

Method Indent

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

Indent sets the encoder to generate XML in which each element begins on a new indented line that starts with prefix and is followed by one or more copies of indent according to the nesting depth.

(prefix, indent string)

Source from the content-addressed store, hash-verified

156// begins on a new indented line that starts with prefix and is followed by
157// one or more copies of indent according to the nesting depth.
158func (enc *Encoder) Indent(prefix, indent string) {
159 enc.p.prefix = prefix
160 enc.p.indent = indent
161}
162
163// Encode writes the XML encoding of v to the stream.
164//

Callers 1

MarshalIndentFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected