debug

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJSONHttpResponse

func DecodeJSONHttpResponse(r io.Reader, v interface{}, debug bool) error

DecodeJSONHttpResponse decode json response with debug

func PrintError

func PrintError(err error, debug bool)

PrintError print error with debug

func PrintGetRequest

func PrintGetRequest(url string, debug bool)

PrintGetRequest print get request with debug

func PrintJSONRequest

func PrintJSONRequest(method string, url string, header http.Header, body []byte, debug bool)

PrintJSONRequest print json request with debug

func PrintPostJSONRequest

func PrintPostJSONRequest(url string, body []byte, debug bool)

PrintPostJSONRequest print json request with debug

func PrintPostMultipartRequest

func PrintPostMultipartRequest(url string, mp map[string]string, debug bool)

PrintPostMultipartRequest print multipart/form-data post request with debug

func PrintStringResponse

func PrintStringResponse(str string, debug bool)

PrintStringResponse print string response with debug

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL