Versions in this module Expand all Collapse all v0 v0.3.3 Dec 11, 2021 v0.3.2 Jun 18, 2021 v0.3.1 Apr 25, 2021 v0.3.0 Apr 17, 2021 v0.2.0 Apr 13, 2021 v0.1.4 Apr 8, 2021 v0.1.3 Apr 8, 2021 v0.1.2 Apr 7, 2021 v0.1.1 Apr 5, 2021 v0.1.0 Apr 5, 2021 Changes in this version + type AuthToken struct + AccessToken string + DeviceId string + ExpiresIn int + Scope string + TokenType string + func GetAuthToken(appId, appSecret string) (token AuthToken, err error) + type Comment struct + Author string + Body string + Created time.Time + Depth int + Downs int + Id string + Replies []Comment + Score int + Ups int + func FetchPostComments(p Post, authorization AuthToken) (c []Comment, err error) + type Post struct + Author string + Body string + Comments []Comment + Created float64 + DownloadTime time.Time + Downs int + NumComments int + Permalink string + Score int + Subreddit string + Title string + Ups int + UpvoteRatio float64 + func GetHot(subreddit string, limit int, authorization AuthToken) ([]Post, error) + func GetNew(subreddit string, limit int, authorization AuthToken) ([]Post, error) + func GetPosts(subreddit string, limit int, sort string, authorization AuthToken) (posts []Post, err error) + func GetRising(subreddit string, limit int, authorization AuthToken) ([]Post, error) + func GetTop(subreddit string, limit int, authorization AuthToken) ([]Post, error)