Update README.md, remove one of the flair methods

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-06 19:26:47 -04:00
parent 11d1e2d5e0
commit b23b1b69f8
5 changed files with 26 additions and 99 deletions
+7 -2
View File
@@ -62,10 +62,15 @@ if err != nil {
</details>
<details>
<summary>Get a subreddit's top 5 posts of all time.</summary>
<summary>Get r/golang's top 5 posts of all time.</summary>
```go
result, _, err := client.Subreddit.Top(context.Background(), "golang", reddit.SetLimit(5), reddit.FromAllTime)
result, _, err := client.Subreddit.Top(context.Background(), "golang", &reddit.ListPostOptions{
ListOptions: reddit.ListOptions{
Limit: 5,
},
Time: "all",
})
if err != nil {
fmt.Printf("Something bad happened: %v\n", err)
return err