Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Subreddits = []string{
"funny",
"memes",
"meirl",
"valorantmemes",
"dankmemes",
"wholesomememes",
"okbuddyretard",
"comedymemes",
"pewdiepiesubmissions",
"lastimages",
"historymemes",
"raimimemes",
"Overwatch_Memes",
}
View Source
var (
Version = "0.0.1"
)
Functions ¶
This section is empty.
Types ¶
type Meme ¶
type Meme struct { ID string `json:"id"` Subreddit string `json:"subreddit"` Title string `json:"title"` Author string `json:"author"` Image string `json:"image"` Ups int `json:"ups"` Downs int `json:"downs"` Score int `json:"score"` Comments int `json:"comments"` NSFW bool `json:"nsfw"` CreatedUTC float64 `json:"createdUtc"` }
Meme
func GetRandomMeme ¶
GetRandomMeme retrieve a random meme from a random subreddit
func GetRandomMemeFromSubreddit ¶
GetRandomMemeFromSubreddit retrieve a random meme from the given subreddit
type PostData ¶
type PostData struct { ID string `json:"id"` Subreddit string `json:"subreddit"` AuthorFullname string `json:"author_fullname"` Title string `json:"title"` Downs int `json:"downs"` Ups int `json:"ups"` Score int `json:"score"` Over18 bool `json:"over_18"` Permaling string `json:"permalink"` Url string `json:"url"` Comments int `json:"num_comments"` CreatedUTC float64 `json:"created_utc"` }
Click to show internal directories.
Click to hide internal directories.