Skip to content
Snippets Groups Projects
Commit 9ecab355 authored by ale's avatar ale
Browse files

Pass a pointer to json unmarshal

parent 19e13d84
No related branches found
No related tags found
No related merge requests found
Pipeline #77086 passed
...@@ -54,7 +54,7 @@ func (c *typeClient) Find(ctx context.Context, _ string, query map[string]string ...@@ -54,7 +54,7 @@ func (c *typeClient) Find(ctx context.Context, _ string, query map[string]string
l := reflect.MakeSlice( l := reflect.MakeSlice(
reflect.SliceOf(reflect.TypeOf(c.t.NewInstance())), 0, 4) reflect.SliceOf(reflect.TypeOf(c.t.NewInstance())), 0, 4)
if err := httptransport.Do(ctx, c.client, "GET", c.verbURL("find")+"?"+values.Encode(), nil, l.Interface()); err != nil { if err := httptransport.Do(ctx, c.client, "GET", c.verbURL("find")+"?"+values.Encode(), nil, l.Addr().Interface()); err != nil {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment