generate statistics for the year of 2017

This commit is contained in:
2018-02-22 17:46:16 -06:00
parent cd72fb5cd7
commit 50c31e38b5
11 changed files with 1330 additions and 36 deletions

23
src/model/reddit-post.go Normal file
View File

@@ -0,0 +1,23 @@
package model
// RedditPost -
type RedditPost struct {
Subreddit string `json:"subreddit"`
ID string `json:"id"`
Gilded int `json:"gilded"`
Score int `json:"score"`
Author string `json:"author"`
Domain string `json:"domain"`
Over_18 bool `json:"over_18"`
Thumbnail string `json:"thumbnail"`
Permalink string `json:"permalink"`
Url string `json:"url"`
Title string `json:"title"`
Created float64 `json:"created"`
Created_utc float64 `json:"created_utc"`
Num_comments int `json:"num_comments"`
Ups int `json:"ups"`
// extra fields
TopPosition int // highest achieved position on front page
}