github.com/wtfutil/wtf@v0.43.0/modules/subreddit/link.go (about)

     1  package subreddit
     2  
     3  type Link struct {
     4  	Score     int    `json:"ups"`
     5  	Title     string `json:"title"`
     6  	ItemURL   string `json:"url"`
     7  	Permalink string `json:"permalink"`
     8  }
     9  
    10  type RedditDocument struct {
    11  	Data Subreddit `json:"data"`
    12  }
    13  
    14  type RedditLinkDocument struct {
    15  	Data Link `json:"data"`
    16  }
    17  
    18  type Subreddit struct {
    19  	Children []RedditLinkDocument `json:"Children"`
    20  }