reddit

package
v0.0.0-...-d7c22ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	REDDITCLIENTID     string
	REDDITCLIENTSECRET string
	REDDITREFRESHTOKEN string
	REDDITACCESSTOKEN  string

	REDDITUSERNAME string
	REDDITPWD      string
)

Functions

func Ask

func Ask() (status bool, title, desc, comments string)

fetch a post and comments from r/askreddit

func R

func R(subreddit string, comment int) (status bool, title, url, desc, flair, comments string)

fetch a post from a subreddit

func Random

func Random() (status bool, title, url string)

fetch a meme from r/dankmemes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL