github.com/chanxuehong/wechat@v0.0.0-20230222024006-36f0325263cd/internal/debug/api/release.go (about)

     1  //go:build !wechat_debug
     2  // +build !wechat_debug
     3  
     4  package api
     5  
     6  import (
     7  	"encoding/json"
     8  	"io"
     9  )
    10  
    11  func DebugPrintGetRequest(url string) {}
    12  
    13  func DebugPrintPostJSONRequest(url string, body []byte) {}
    14  
    15  func DebugPrintPostMultipartRequest(url string, body []byte) {}
    16  
    17  func DecodeJSONHttpResponse(r io.Reader, v interface{}) error {
    18  	return json.NewDecoder(r).Decode(v)
    19  }