MCPcopy Create free account
hub / github.com/chanxuehong/wechat / XmlEncodeResponseMessage

Function XmlEncodeResponseMessage

internal/debug/callback/debug.go:30–39  ·  view source on GitHub ↗
(w io.Writer, msg interface{})

Source from the content-addressed store, hash-verified

28}
29
30func XmlEncodeResponseMessage(w io.Writer, msg interface{}) error {
31 bs, err := xml.MarshalIndent(msg, "", " ")
32 if err != nil {
33 return err
34 }
35 log.Printf("[WECHAT_DEBUG] [CALLBACK] plain response message:\n%s\n", bs)
36
37 _, err = w.Write(bs)
38 return err
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…