tests

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeautifyToJSON

func BeautifyToJSON(v interface{}) string

BeautifyToJSON v 编码成有缩进的JSON

func EncodeJSONToReader

func EncodeJSONToReader(v interface{}) io.Reader

func Get

func Get(url string, headers map[string]string, out interface{}) error

Get Only support Request url values, Response Content-Type application/json

func Post

func Post(url string, headers map[string]string, in, out interface{}) error

Post Only support Request/Response Content-Type application/json

func PrintBeautifyJSON

func PrintBeautifyJSON(v interface{})

PrintBeautifyJSON 打印 BeautifyToJSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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