take pointer for "next" variable

This commit is contained in:
Yasuhiro Matsumoto 2017-04-18 17:08:48 +09:00
parent a0232ea6ef
commit 9ccb5101ec
6 changed files with 98 additions and 47 deletions

View file

@ -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
}