Versions in this module Expand all Collapse all v0 v0.1.0 Apr 15, 2026 Changes in this version + const DateFormat + func MarshalDeepObject(i any, paramName string) (string, error) + func NewAddPetRequest(server string, body addPetJSONRequestBody) (*http.Request, error) + func NewAddPetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewDeletePetRequest(server string, id int64) (*http.Request, error) + func NewFindPetByIDRequest(server string, id int64) (*http.Request, error) + func NewFindPetsRequest(server string, params *FindPetsParams) (*http.Request, error) + func StyleParameter(paramName string, value any, opts ParameterOptions) (string, error) + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) AddPet(ctx context.Context, body addPetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) AddPetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) DeletePet(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) FindPetByID(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) FindPets(ctx context.Context, params *FindPetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientHttpError struct + Body E + RawBody []byte + StatusCode int + func (e *ClientHttpError[E]) Error() string + type ClientInterface interface + AddPet func(ctx context.Context, body addPetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + AddPetWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + DeletePet func(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) + FindPetByID func(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) + FindPets func(ctx context.Context, params *FindPetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type Date struct + func (d *Date) UnmarshalJSON(data []byte) error + func (d *Date) UnmarshalText(data []byte) error + func (d Date) Format(layout string) string + func (d Date) MarshalJSON() ([]byte, error) + func (d Date) MarshalText() ([]byte, error) + func (d Date) String() string + type FindPetsParams struct + Limit *int32 + Tags *[]string + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type ParamLocation int + const ParamLocationCookie + const ParamLocationHeader + const ParamLocationPath + const ParamLocationQuery + const ParamLocationUndefined + type ParameterOptions struct + AllowReserved bool + Explode bool + Format string + ParamLocation ParamLocation + Required bool + Style string + Type string + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type SimpleClient struct + func NewSimpleClient(server string, opts ...ClientOption) (*SimpleClient, error) + func (c *SimpleClient) AddPet(ctx context.Context, body addPetJSONRequestBody, reqEditors ...RequestEditorFn) (petstore.Pet, error) + func (c *SimpleClient) FindPetByID(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (petstore.Pet, error) + func (c *SimpleClient) FindPets(ctx context.Context, params *FindPetsParams, reqEditors ...RequestEditorFn) ([]petstore.Pet, error) + type UUID = uuid.UUID