vo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RssBody

type RssBody struct {
	Channel RssChannel `xml:"channel"`
}

RssBody rss内容body

func (*RssBody) Parse

func (rss *RssBody) Parse(r io.Reader) error

type RssChannel

type RssChannel struct {
	Title       string `xml:"title"`
	Description string `xml:"description"`
	Link        string `xml:"link"`
	PubDate     string `xml:"pubDate"`
	Language    string `xml:"language"`
	Copyright   string `xml:"copyright"`
	Generator   string `xml:"generator"`
	Image       struct {
		Title string `xml:"title"`
		Url   string `xml:"url"`
		Link  string `xml:"link"`
	} `xml:"image"`
	Items []*RssItems `xml:"item"`
}

type RssItems

type RssItems struct {
	Title       string `json:"title" xml:"title"`
	Author      string `json:"author" xml:"author"`
	Link        string `json:"link" xml:"link"`
	PubDate     string `json:"pubDate" xml:"pubDate"`
	Description string `json:"description" xml:"description"`
}

type RssMeta

type RssMeta struct {
	Name   string
	RssUrl string
}

RssMeta 源信息

Jump to

Keyboard shortcuts

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