pan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(args []string) (result string, err error)

Process runs required operations for all arguments.

Types

type AtomLink struct {
	XMLName xml.Name `xml:"atom:link"`
	Href    string   `xml:"href,attr,omitempty"`
	Rel     string   `xml:"rel,attr,omitempty"`
	Type    string   `xml:"type,attr,omitempty"`
}

AtomLink represents an AtomLink tag.

func AtomLinkFromMap

func AtomLinkFromMap(atomLinkMap map[interface{}]interface{}) AtomLink

AtomLinkFromMap is an AtomLink factory from map[interface{}]interface{}.

func (*AtomLink) UnmarshalYAML

func (a *AtomLink) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML is the YAML unmarshaler for AtomLink.

type Channel

type Channel struct {
	XMLName          xml.Name     `xml:"channel"`
	AtomLink         *AtomLink    `yaml:"atom_link" xml:"atom:link,omitempty"`
	ITunesSubtitle   string       `yaml:"itunes_subtitle" xml:"itunes:subtitle,omitempty"`
	ITunesAuthor     string       `yaml:"itunes_author" xml:"itunes:author,omitempty"`
	ITunesExplicit   string       `yaml:"itunes_explicit" xml:"itunes:explicit,omitempty"`
	ITunesSummary    string       `yaml:"itunes_summary" xml:"itunes:summary,omitempty"`
	ITunesImage      *ITunesImage `yaml:"itunes_image" xml:"itunes:image,omitempty"`
	ITunesOwner      *ITunesOwner `yaml:"itunes_owner" xml:"itunes:owner,omitempty"`
	ITunesCategories []ITunesCategory
	Title            string `xml:"title"`
	Link             string `xml:"link"`
	Language         string `xml:"language"`
	Copyright        string `xml:"copyright"`
	Description      string `xml:"description"`
	Items            []Item `yaml:"items"`
}

Channel represents each episode.

func ChannelFromMap

func ChannelFromMap(channelMap map[interface{}]interface{}) Channel

ChannelFromMap is a Channel factory form map[interface{}]interface{}.

func (*Channel) UnmarshalYAML

func (c *Channel) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML is the YAML unmarshaler for Channel.

type Enclosure

type Enclosure struct {
	XMLName xml.Name `xml:"enclosure"`
	Length  string   `xml:"length,attr"`
	Type    string   `xml:"type,attr"`
	URL     string   `xml:"url,attr"`
}

Enclosure represents the definition of the resource shared.

func EnclosureFromMap

func EnclosureFromMap(enclosureMap map[interface{}]interface{}) Enclosure

EnclosureFromMap is an Enclosure factory from map[interface{}]interface{}.

func (*Enclosure) UnmarshalYAML

func (e *Enclosure) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML is the unmarshaler for Enclosure.

type ITunesCategory

type ITunesCategory struct {
	XMLName    xml.Name `xml:"itunes:category"`
	Text       string   `xml:"text,attr,omitempty"`
	Categories []ITunesCategory
}

ITunesCategory represents an AtomLink tag.

func ITunesCategoryFromMap

func ITunesCategoryFromMap(iTunesCategoryMap map[interface{}]interface{}) ITunesCategory

ITunesCategoryFromMap is an ITunesCategory factory from map[interface{}]interface{}.

func (*ITunesCategory) UnmarshalYAML

func (i *ITunesCategory) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML is the YAML unmarshaler for ITunesCategory.

type ITunesImage

type ITunesImage struct {
	XMLName xml.Name `xml:"itunes:image"`
	Href    string   `xml:"href,attr,omitempty"`
}

ITunesImage represents an AtomLink tag.

func ITunesImageFromMap

func ITunesImageFromMap(iTunesImageMap map[interface{}]interface{}) ITunesImage

ITunesImageFromMap is an ITunesImage factory from map[interface{}]interface{}.

func (*ITunesImage) UnmarshalYAML

func (i *ITunesImage) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML is the YAML unmarshaler for ITunesImage.

type ITunesOwner

type ITunesOwner struct {
	XMLName xml.Name `xml:"itunes:owner"`
	Name    string   `yaml:"itunes_name" xml:"itunes:name,omitempty"`
	Email   string   `yaml:"itunes_email" xml:"itunes:email,omitempty"`
}

ITunesOwner represents an ITunesOwner tag.

func ITunesOwnerFromMap

func ITunesOwnerFromMap(iTunesOwnerMap map[interface{}]interface{}) ITunesOwner

ITunesOwnerFromMap is an ITunesOwner factory from map[interface{}]interface{}.

type Item

type Item struct {
	XMLName     xml.Name `xml:"item"`
	Title       string   `xml:"title"`
	Link        string   `xml:"link"`
	GUID        string   `xml:"guid"`
	Description string   `xml:"description"`
	PubDate     string   `xml:"pubDate"`
	Enclosure   Enclosure
}

Item represents each episode.

func ItemFromMap

func ItemFromMap(itemMap map[interface{}]interface{}) Item

ItemFromMap is an Item factory from a map[interface{}]interface{}.

func (*Item) UnmarshalYAML

func (i *Item) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML is the unmarshaler for Item.

type RSS

type RSS struct {
	XMLName  xml.Name `xml:"rss"`
	AtomNS   string   `xml:"xmlns:atom,attr"`
	ITunesNS string   `xml:"xmlns:itunes,attr"`
	Version  string   `xml:"version,attr"`
	Channel  Channel  `yaml:"channel"`
}

RSS represents a RSS Feed.

func RSSFromMap

func RSSFromMap(rssMap map[interface{}]interface{}) RSS

RSSFromMap is a RSS factory from map[interface{}]interface{}.

func (*RSS) UnmarshalYAML

func (r *RSS) UnmarshalYAML(unmarshal func(interface{}) error) (err error)

UnmarshalYAML is the unmarshaler for RSS.

Jump to

Keyboard shortcuts

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