cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

cmd/create.go

cmd/opml.go

cmd/root.go

cmd/rss.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func GenerateOPML

func GenerateOPML()

func GenerateRSS

func GenerateRSS()

Types

type Body

type Body struct {
	Outlines []Outline `xml:"outline"`
}

Body contains the main content of the OPML document.

type Channel

type Channel struct {
	Title         string `xml:"title"`
	Link          string `xml:"link"`
	Description   string `xml:"description"`
	LastBuildDate string `xml:"lastBuildDate"`
	Items         []Item `xml:"item"`
}

Channel represents an RSS channel.

type Head struct {
	Title       string `xml:"title"`
	DateCreated string `xml:"dateCreated"`
}

Head contains metadata such as the title of the document.

type Item

type Item struct {
	Title       string `xml:"title"`
	Link        string `xml:"link"`
	Description string `xml:"description"`
	Guid        string `xml:"guid"`
	PubDate     string `xml:"pubDate"`
}

Item represents a single entry in an RSS feed.

type OPML

type OPML struct {
	XMLName xml.Name `xml:"opml"`
	Version string   `xml:"version,attr"`
	Head    Head     `xml:"head"`
	Body    Body     `xml:"body"`
}

OPML represents the structure of an OPML document.

type Outline

type Outline struct {
	Text    string `xml:"text,attr"`
	Type    string `xml:"type,attr,omitempty"`
	XMLURL  string `xml:"xmlUrl,attr,omitempty"`
	HTMLURL string `xml:"htmlUrl,attr,omitempty"`
}

Outline represents a single outline entry in an OPML document.

type Post

type Post struct {
	Title   string `json:"title"`
	Date    string `json:"date"`
	Path    string `json:"path"`
	Summary string `json:"summary"`
}

type RSS

type RSS struct {
	XMLName xml.Name `xml:"rss"`
	Version string   `xml:"version,attr"`
	Channel Channel  `xml:"channel"`
}

RSS is the root type for an RSS document.

Jump to

Keyboard shortcuts

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