newsapi

package
v0.0.0-...-2965246 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(apiKey string) *Client

func (*Client) GetTopHeadlines

func (c *Client) GetTopHeadlines() ([]models.Article, error)

type NewsAPIResponse

type NewsAPIResponse struct {
	Status      string           `json:"status"`
	Code        string           `json:"code"`
	Message     string           `json:"message"`
	TotalResult int              `json:"totalResults"`
	Articles    []models.Article `json:"articles"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL