Versions in this module Expand all Collapse all v0 v0.0.2 Mar 26, 2024 Changes in this version + type DefaultErrorAccumulator struct + Buffer errorBuffer + func (e *DefaultErrorAccumulator) Bytes() (errBytes []byte) + func (e *DefaultErrorAccumulator) Write(p []byte) error + type DefaultFormBuilder struct + func NewFormBuilder(body io.Writer) *DefaultFormBuilder + func (fb *DefaultFormBuilder) Close() error + func (fb *DefaultFormBuilder) CreateFormFile(fieldname string, file *os.File) error + func (fb *DefaultFormBuilder) CreateFormFileReader(fieldname string, r io.Reader, filename string) error + func (fb *DefaultFormBuilder) FormDataContentType() string + func (fb *DefaultFormBuilder) WriteField(fieldname, value string) error + type ErrorAccumulator interface + Bytes func() []byte + Write func(p []byte) error + func NewErrorAccumulator() ErrorAccumulator + type FormBuilder interface + Close func() error + CreateFormFile func(fieldname string, file *os.File) error + CreateFormFileReader func(fieldname string, r io.Reader, filename string) error + FormDataContentType func() string + WriteField func(fieldname, value string) error + type HTTPRequestBuilder struct + func NewRequestBuilder() *HTTPRequestBuilder + func (b *HTTPRequestBuilder) Build(ctx context.Context, method string, url string, body any, header http.Header) (req *http.Request, err error) + type JSONMarshaller struct + func (jm *JSONMarshaller) Marshal(value any) ([]byte, error) + type JSONUnmarshaler struct + func (jm *JSONUnmarshaler) Unmarshal(data []byte, v any) error + type Marshaller interface + Marshal func(value any) ([]byte, error) + type RequestBuilder interface + Build func(ctx context.Context, method, url string, body any, header http.Header) (*http.Request, error) + type Unmarshaler interface + Unmarshal func(data []byte, v any) error