take pointer for "next" variable
This commit is contained in:
parent
a0232ea6ef
commit
9ccb5101ec
6 changed files with 98 additions and 47 deletions
|
@ -16,7 +16,7 @@ type Instance struct {
|
|||
// GetInstance return Instance.
|
||||
func (c *Client) GetInstance(ctx context.Context) (*Instance, error) {
|
||||
var instance Instance
|
||||
err := c.doAPI(ctx, http.MethodGet, "/api/v1/instance", nil, &instance)
|
||||
err := c.doAPI(ctx, http.MethodGet, "/api/v1/instance", nil, &instance, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue