utils

package
v0.0.0-...-351480b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Marshal is exported by gin/json package.
	JSONMarshal = json.Marshal
	// Unmarshal is exported by gin/json package.
	JSONUnmarshal = json.Unmarshal
	// MarshalIndent is exported by gin/json package.
	JSONMarshalIndent = json.MarshalIndent
	// NewDecoder is exported by gin/json package.
	JSONNewDecoder = json.NewDecoder
	// NewEncoder is exported by gin/json package.
	JSONNewEncoder = json.NewEncoder
)

Functions

func DefaultReqJSON

func DefaultReqJSON(req *http.Request, ptr interface{}) error

func RespParseJSON

func RespParseJSON(resp *http.Response, ptr interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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