MCPcopy Create free account
hub / github.com/antchfx/xmlquery / Close

Method Close

node.go:225–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223}
224
225func (i *indentation) Close() (err error) {
226 if i == nil {
227 return
228 }
229 i.level--
230 if i.hasChild {
231 if err = i.writeIndent(); err != nil {
232 return
233 }
234 }
235 i.hasChild = true
236 return
237}
238
239func (i *indentation) writeIndent() (err error) {
240 _, err = io.WriteString(i.w, "\n")

Callers 4

TestLoadURLSuccessFunction · 0.80
TestLoadURLFailureFunction · 0.80
outputXMLFunction · 0.80
LoadURLFunction · 0.80

Calls 1

writeIndentMethod · 0.95

Tested by 2

TestLoadURLSuccessFunction · 0.64
TestLoadURLFailureFunction · 0.64