Skip to content

Commit

Permalink
add NewWithClient to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulagr2 committed Nov 23, 2024
1 parent ecb4f57 commit 4a70013
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/client/rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,22 @@ type Client struct {
}
```

New
### New

New creates and returns a new Client object.

```go title="Signature"
func New() *Client
```

### NewWithClient

NewWithClient creates and returns a new Client object from an existing client object.

```go title="Signature"
func NewWithClient(c *fasthttp.Client) *Client
```

## REST Methods

### Get
Expand Down

0 comments on commit 4a70013

Please sign in to comment.