rss

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDateID

func GenDateID(tag, link string) string

func GenFixedID

func GenFixedID(tag, link string) string

用来处理不会更新的feed

func Rss

func Rss(fe *Feed, items []Item) string

Rss 输出rss

Types

type Feed

type Feed struct {
	URL, Author, Contents    string
	CreatedTime, UpdatedTime time.Time
	Title
}

Feed 通用Feed

type Item

type Item struct {
	URL, Title, Author, Contents, ID string
	CreatedTime, UpdatedTime         time.Time
	Enclosure                        *feeds.Enclosure
}

type Title

type Title struct {
	Prefix string
	Name   string
}

Jump to

Keyboard shortcuts

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