github.com/chanxuehong/wechat@v0.0.0-20230222024006-36f0325263cd/internal/debug/mch/callback/release.go (about) 1 //go:build !wechat_debug 2 // +build !wechat_debug 3 4 package callback 5 6 import ( 7 "io" 8 "net/http" 9 10 "github.com/chanxuehong/util" 11 ) 12 13 func DebugPrintRequest(r *http.Request) {} 14 15 func DebugPrintRequestMessage(msg []byte) {} 16 17 func EncodeXMLResponseMessage(w io.Writer, msg map[string]string) (err error) { 18 return util.EncodeXMLFromMap(w, msg, "xml") 19 }