news

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleNewsPrompt

func HandleNewsPrompt(info []Information) (int, string, error)

HandleNewsPrompt handles the format and display of news in CLI

func MapCommandCountry

func MapCommandCountry(subject string) map[string]func() (info []Information)

MapCommandCountry maps a country to a function

Types

type Information

type Information struct {
	Title  string
	Href   string
	Domain string
}

Information type

func HandleBrazilNews

func HandleBrazilNews() (info []Information)

HandleBrazilNews is a method from Crawler type

func HandleUSANews

func HandleUSANews() (info []Information)

HandleUSANews is a method from Crawler type

Jump to

Keyboard shortcuts

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