Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { Source struct { ID interface{} `json:"id"` Name string `json:"name"` } `json:"source"` Author string `json:"author"` Title string `json:"title"` Description string `json:"description"` URL string `json:"url"` URLToImage string `json:"urlToImage"` PublishedAt time.Time `json:"publishedAt"` }
Article : Structure to store the json object
func (*Article) FormatPublishedDate ¶
FormatPublishedDate : Formatting published date
type Client ¶
type Client struct { PageSize int // contains filtered or unexported fields }
Client : Structure to store http client
func (*Client) FetchByCategory ¶
FetchByCategory : Fectch for Category
func (*Client) FetchBySearch ¶
FetchBySearch : To fetch the queries
func (*Client) FetchBySource ¶
FetchBySource : To fetch by source
Click to show internal directories.
Click to hide internal directories.