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:
+3
-1
@@ -14,7 +14,9 @@ import (
|
||||
// Reddit API docs: https://www.reddit.com/dev/api/#section_links_and_comments
|
||||
//
|
||||
// todo: this is ugly, find a solution
|
||||
type PostAndCommentService service
|
||||
type PostAndCommentService struct {
|
||||
client *Client
|
||||
}
|
||||
|
||||
type vote int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user