MCPcopy
hub / github.com/valyala/quicktemplate / StreamXML

Method StreamXML

testdata/templates/marshal.qtpl.go:103–131  ·  view source on GitHub ↗

XML marshaling line testdata/templates/marshal.qtpl:37

(qw422016 *qt422016.Writer)

Source from the content-addressed store, hash-verified

101
102//line testdata/templates/marshal.qtpl:37
103func (d *MarshalData) StreamXML(qw422016 *qt422016.Writer) {
104//line testdata/templates/marshal.qtpl:37
105 qw422016.N().S(`<MarshalData><Foo>`)
106//line testdata/templates/marshal.qtpl:39
107 qw422016.N().D(d.Foo)
108//line testdata/templates/marshal.qtpl:39
109 qw422016.N().S(`</Foo><Bar>`)
110//line testdata/templates/marshal.qtpl:40
111 qw422016.E().S(d.Bar)
112//line testdata/templates/marshal.qtpl:40
113 qw422016.N().S(`</Bar>`)
114//line testdata/templates/marshal.qtpl:41
115 for _, r := range d.Rows {
116//line testdata/templates/marshal.qtpl:41
117 qw422016.N().S(`<Rows><Msg>`)
118//line testdata/templates/marshal.qtpl:43
119 qw422016.E().S(r.Msg)
120//line testdata/templates/marshal.qtpl:43
121 qw422016.N().S(`</Msg><N>`)
122//line testdata/templates/marshal.qtpl:44
123 qw422016.N().D(r.N)
124//line testdata/templates/marshal.qtpl:44
125 qw422016.N().S(`</N></Rows>`)
126//line testdata/templates/marshal.qtpl:46
127 }
128//line testdata/templates/marshal.qtpl:46
129 qw422016.N().S(`</MarshalData>`)
130//line testdata/templates/marshal.qtpl:48
131}
132
133//line testdata/templates/marshal.qtpl:48
134func (d *MarshalData) WriteXML(qq422016 qtio422016.Writer) {

Callers 1

WriteXMLMethod · 0.95

Calls 4

SMethod · 0.80
NMethod · 0.80
DMethod · 0.80
EMethod · 0.80

Tested by

no test coverage detected