Versions in this module Expand all Collapse all v0 v0.1.0 Jun 10, 2021 Changes in this version + var DefaultClient = &Client + func Do(ctx context.Context, method, url, contentType string, req, resp interface{}) error + func Get(ctx context.Context, url string, v interface{}) error + func IsJSONContentType(contentType string) bool + func MarshalRequest(method, url, contentType string, v interface{}) (*http.Request, error) + func UnmarshalRequest(req *http.Request, v interface{}) error + func UnmarshalResponse(resp *http.Response, v interface{}) error + func WriteResponse(w http.ResponseWriter, statusCode int, contentType string, v interface{}) error + type Client struct + HTTPClient *http.Client + IsJSONContentType func(contentType string) bool + func (c *Client) Do(ctx context.Context, method, url, contentType string, req, resp interface{}) error + func (c *Client) Get(ctx context.Context, url string, v interface{}) error + type ResponseError struct + Body []byte + Response *http.Response + func (e *ResponseError) Error() string