news

package
v0.0.0-...-ec10a6c Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewsEntry

type NewsEntry struct {
	Title        string
	ThumbnailURL string
	Description  string
	URL          string
	Author       string
	PostedAt     *time.Time
	EditedAt     *time.Time
}

type NewsFeed

type NewsFeed struct {
	Title        string
	Description  string
	ThumbnailURL string
	URL          string
	Author       string
	Entries      []*NewsEntry
}

func GetCNNTechFeed

func GetCNNTechFeed() (*NewsFeed, error)

func GetCNNTopStoriesFeed

func GetCNNTopStoriesFeed() (*NewsFeed, error)

func GetCNNWorldFeed

func GetCNNWorldFeed() (*NewsFeed, error)

func GetTHNFeed

func GetTHNFeed() (*NewsFeed, error)

func ParseFeed

func ParseFeed(feedURL string) (*NewsFeed, error)

Jump to

Keyboard shortcuts

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