Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractText ¶
Given a URL, the text will be extracted (if exist)
func GenerateArticleText ¶
Types ¶
type API ¶
type API struct { TopStories TopStories `json:"body"` // contains filtered or unexported fields }
The API for other package to interact with
func (*API) FilterBySections ¶
func (a *API) FilterBySections()
Used in controller/article to filter out the "non-news" sections
func (*API) GenerateArticles ¶
Construct the Article list (TopStories struct). Each Article in the list will only contain the URL, Section, and Title after this call. These are the value returned from NYTimes API.
func (*API) GetArticles ¶
A Get-Set style function to exposes the the articles array through interface
type TopStories ¶
The json of the response from NYTimes API
Click to show internal directories.
Click to hide internal directories.