Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serialize ¶
func Serialize(subscriptions SubcriptionList) string
Serialize returns a SubcriptionList in OPML format.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles the logic for OPML import/export.
func NewHandler ¶
NewHandler creates a new handler for OPML files.
type Subcription ¶
Subcription represents a feed that will be imported or exported.
func (Subcription) Equals ¶
func (s Subcription) Equals(subscription *Subcription) bool
Equals compare two subscriptions.
type SubcriptionList ¶
type SubcriptionList []*Subcription
SubcriptionList is a list of subscriptions.
func Parse ¶
func Parse(data io.Reader) (SubcriptionList, *errors.LocalizedError)
Parse reads an OPML file and returns a SubcriptionList.
Click to show internal directories.
Click to hide internal directories.