# Functions
EncodeURL encodes the given arguments into the URL, escaping values as needed.
ExtractExtraProperties extracts any extra properties from the given value.
MarshalJSONWithExtraProperties marshals the given value to JSON, including any extra properties.
MarshalJSONWithExtraProperty marshals the given value to JSON, including the extra property.
MergeHeaders merges the given headers together, where the right takes precedence over the left.
NewCaller returns a new *Caller backed by the given parameters.
NewDate returns a new *Date.
NewDateTime returns a new *DateTime.
NewErrorDecoder returns a new ErrorDecoder backed by the given error codes.
NewOptionalDate returns a new *Date.
NewOptionalDateTime returns a new *DateTime.
NewRetrier constructs a new *Retrier with the given options, if any.
QueryValues encodes url.Values from request objects.
ResolveBaseURL resolves the base URL from the given arguments, preferring the first non-empty value.
StringifyJSON returns a pretty JSON string representation of the given value.
WithMaxAttempts configures the maximum number of attempts of the *Retrier.
# Structs
Caller calls APIs and deserializes their response, if any.
CallerParams represents the parameters used to constrcut a new *Caller.
CallParams represents the parameters used to issue an API call.
DateTime wraps time.Time and adapts its JSON representation to conform to a RFC3339 date (e.g.
DateTime wraps time.Time and adapts its JSON representation to conform to a RFC3339 date-time (e.g.
Retrier retries failed requests a configurable number of times with an exponential back-off between each retry.
# Interfaces
HTTPClient is an interface for a subset of the *http.Client.
QueryEncoder is an interface implemented by any type that wishes to encode itself into URL values in a non-standard way.
# Type aliases
ErrorCodes maps HTTP status codes to error constructors.
ErrorDecoder decodes *http.Response errors and returns a typed API error (e.g.
RetryFunc is a retriable HTTP function call (i.e.
RetryOption adapts the behavior the *Retrier.