debug

package
v0.0.0-...-4c075ac Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeEncoding

func DecodeEncoding(r io.Reader) *transform.Reader

将对应格式文本转换成utf-8

func DecodeJSONHttpResponse

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

DecodeJSONHttpResponse decode http json response with debug

func DecodeStingHttpResponse

func DecodeStingHttpResponse(r io.Reader, resp *[][]string, debug bool) error

func PrintError

func PrintError(err error, debug bool)

PrintError debug print error

func PrintGetRequest

func PrintGetRequest(url string, debug bool)

PrintGetRequest debug print get request

func PrintPostJSONRequest

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

PrintPostJSONRequest debug print post json request

func PrintPostMultipartRequest

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

PrintPostMultipartRequest debug print post multipart request

func PrintStringResponse

func PrintStringResponse(str string, debug bool)

PrintStringResponse debug print string response

Types

This section is empty.

Jump to

Keyboard shortcuts

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