rdf

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Encoded []byte `xml:",chardata"`
}

Content is a wrapper for content.

type Feed

type Feed struct {
	XMLName xml.Name
	Items   []Item `xml:"item"`
	Channel struct {
		Title       string `xml:"title"`
		Link        string `xml:"link"`
		Description string `xml:"description"`
		PubDate     string `xml:"pubDate"`
	} `xml:"channel"`
}

Feed is the root wrapper.

type Item

type Item struct {
	ID      string  `xml:"guid"`
	Title   string  `xml:"title"`
	Link    string  `xml:"link"`
	Content Content `xml:"encoded"`
}

Item represents one entry.

Jump to

Keyboard shortcuts

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