MCPcopy
hub / github.com/silenceper/wechat / XML

Method XML

officialaccount/server/util.go:36–43  ·  view source on GitHub ↗

XML render to xml

(obj interface{})

Source from the content-addressed store, hash-verified

34
35// XML render to xml
36func (srv *Server) XML(obj interface{}) {
37 writeContextType(srv.Writer, xmlContentType)
38 bytes, err := xml.Marshal(obj)
39 if err != nil {
40 panic(err)
41 }
42 srv.Render(bytes)
43}
44
45// Query returns the keyed url query value if it exists
46func (srv *Server) Query(key string) string {

Callers 1

SendMethod · 0.95

Calls 2

RenderMethod · 0.95
writeContextTypeFunction · 0.85

Tested by

no test coverage detected