feed

package
v0.0.0-...-1669c6a Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FeedItems []*gofeed.Item
)
View Source
var TemplateFuncMap = template.FuncMap{
	"GetCurrentTime":   utils.GetCurrentTime,
	"GetFeedBaseUrl":   utils.GetFeedBaseUrl,
	"GetFeedPrefixUrl": utils.GetFeedPrefixUrl,
	"GetFeedBaseName":  utils.GetFeedBaseName,
	"GetFeedTitle":     utils.GetFeedTitle,
}

Functions

func Fetch

func Fetch(s string) (*gofeed.Feed, error)

func Generate

func Generate(s string) (bytes.Buffer, error)

func Read

func Read(p string) ([]*gofeed.Item, error)

func Render

func Render(items []*gofeed.Item) (bytes.Buffer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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