util

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TryUnmarshal

func TryUnmarshal(text []byte, response interface{})

func TryUnmarshalEscaped

func TryUnmarshalEscaped(jsonStr json.RawMessage, response interface{})

Types

type Response

type Response struct {
	StatusCode        int
	Headers           interface{}
	MultiValueHeaders interface{}
	Body              interface{}
}

func ParseResponse

func ParseResponse(responseTxt []byte) *Response

func (*Response) PaseBody

func (res *Response) PaseBody(bodyStruct interface{})

func (*Response) PaseHeaders

func (res *Response) PaseHeaders(headStruct interface{})

Jump to

Keyboard shortcuts

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