cybernews

package
v0.0.0-...-bf57613 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNewsCategorySize

func GetNewsCategorySize() int

Types

type News

type News struct {
	Id       string `json:"id"`
	Source   string `json:"source"`
	Headline string `json:"headline"`
	News     string `json:"news"`
	Link     string `json:"link"`
	Image    string `json:"image"`
}

func GetNews

func GetNews(newsCategory string) ([]News, error)

type NewsFields

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

func ValidateNewsCategory

func ValidateNewsCategory(category string) ([]NewsFields, error)

Jump to

Keyboard shortcuts

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