opml

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OPML

type OPML struct {
	XMLName xml.Name `xml:"opml"`
	Version string   `xml:"version,attr"`
	Head    struct {
		Title       string    `xml:"title"`
		DateCreated time.Time `xml:"dateCreated,omitempty"`
		OwnerEmail  string    `xml:"ownerEmail,omitempty"`
	} `xml:"head"`
	Body struct {
		Outlines []*Outline `xml:"outline"`
	} `xml:"body"`
}

func FromBytes

func FromBytes(x []byte) (*OPML, error)

func FromFeeds

func FromFeeds(feeds []*db.Feed, userEmailAddress string) *OPML

func (*OPML) ToBytes

func (o *OPML) ToBytes() ([]byte, error)

func (*OPML) ToFeeds

func (o *OPML) ToFeeds() []*db.Feed

type Outline

type Outline struct {
	Outlines []*Outline `xml:"outline"`
	Text     string     `xml:"text,attr"`
	Title    string     `xml:"title,attr,omitempty"`
	Type     string     `xml:"type,attr,omitempty"`
	XMLURL   string     `xml:"xmlUrl,attr,omitempty"`
}

func (*Outline) ToFeeds

func (o *Outline) ToFeeds() []*db.Feed

Jump to

Keyboard shortcuts

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