-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsubreddit.go
More file actions
39 lines (35 loc) · 872 Bytes
/
subreddit.go
File metadata and controls
39 lines (35 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package grow
// Type: t5_, reddit subreddit wrapper
type subredditThing struct {
Id string
Name string
Kind string
Data Subreddit
}
// data payload for subreddit wrapper
type Subreddit struct {
Accounts_active float64
Description string
Description_html interface{}
Display_name interface{}
Header_img interface{}
Header_size []interface{}
Header_title interface{}
Id string
Name string
Over18 bool
Public_description string
Subscribers float64
Title string
Url interface{}
}
// subscribe to this subreddit for the authed user
//
// is there an Unsubscribe? Or does Subscribe toggle?
func Subscribe() error {
return nil
}
// retrieve subreddit about.json, needs to return something not an error
func About() error {
return nil
}