Versions in this module Expand all Collapse all v1 v1.0.1 Nov 12, 2024 Changes in this version + const ContentType + var DefaultClient = NewClient() + func ErrorBody(e error) string + func Get(url string, response interface{}) error + func Post(url string, request interface{}, response interface{}) error + type Client interface + ErrorResponse func(err error, response interface{}) bool + Get func(url string, response interface{}) error + Headers func() http.Header + Post func(url string, request interface{}, response interface{}) error + func NewClient() Client + func NewWithHTTPClient(httpClient *http.Client) Client + type Error struct + Body string + StatusCode int + func (je Error) Error() string + func (je Error) String() string