Use individual structs for services
Made it this way so that I can use the PostAndCommentService as a child of the PostService and CommentService. Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -18,7 +18,9 @@ import (
|
||||
// behaviour, e.g. sometimes limit=1 returns nothing when it should.
|
||||
//
|
||||
// Reddit API docs: https://www.reddit.com/dev/api/#section_search
|
||||
type SearchService service
|
||||
type SearchService struct {
|
||||
client *Client
|
||||
}
|
||||
|
||||
func newSearchOptions(opts ...SearchOptionSetter) url.Values {
|
||||
searchOptions := make(url.Values)
|
||||
|
||||
Reference in New Issue
Block a user