Unexport some structs, rename root struct to thing

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-11 21:06:34 -04:00
parent 62054d2973
commit aa1de29812
4 changed files with 56 additions and 104 deletions
+3 -5
View File
@@ -95,15 +95,13 @@ func (s *CommentService) LoadMoreReplies(ctx context.Context, comment *Comment)
return nil, err
}
type rootResponse struct {
root := new(struct {
JSON struct {
Data struct {
Things Things `json:"things"`
Things things `json:"things"`
} `json:"data"`
} `json:"json"`
}
root := new(rootResponse)
})
resp, err := s.client.Do(ctx, req, root)
if err != nil {
return resp, err