skynews

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Run

func Run(t *term.ViewPort)

The Run function displays a menu of news topics and allows the user to select a topic to view the news articles related to that topic.

func Story

func Story(p *page.Page, storyLink, title string)

The function "Story" displays a story link and allows the user to interact with a menu until they choose to quit.

func Topic

func Topic(t *page.Page, topic, title string)

The function "Topic" takes in a ViewPort object, a topic, and a title as parameters, and then retrieves news items for that topic from an RSS feed, displays them in a menu, and allows the user to select a news item to view.

Types

This section is empty.

Jump to

Keyboard shortcuts

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