news

package
v0.0.0-...-e7fbf99 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNews

func GetNews(ctx *bot.Context) error

GetNews returns news string

Types

type NewsArticeleSourceData

type NewsArticeleSourceData struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

NewsArticeleSourceData : Article source struct

type NewsArticleData

type NewsArticleData struct {
	Source      NewsArticeleSourceData `json:"source"`
	Author      string                 `json:"author"`
	Title       string                 `json:"title"`
	Description string                 `json:"description"`
	URL         string                 `json:"url"`
	PublishedAt string                 `json:"publishedAt"`
}

NewsArticleData : News article struct

type NewsResponseData

type NewsResponseData struct {
	Status       string            `json:"status"`
	TotalResults int               `json:"totalResults"`
	Articles     []NewsArticleData `json:"articles"`
}

NewsResponseData : News main struct

Jump to

Keyboard shortcuts

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