themekit: github.com/Shopify/themekit/src/atom Index | Files

package atom

import "github.com/Shopify/themekit/src/atom"

Index

Package Files

atom.go

type Entry Uses

type Entry struct {
    Title   string `xml:"title"`
    ID      string `xml:"id"`
    Updated string `xml:"updated"`
    Author  Person `xml:"author"`
    Link    Link   `xml:"link"`
    Summary Text   `xml:"content"`
}

Entry ... TODO

type Feed Uses

type Feed struct {
    XMLName xml.Name `xml:"http://www.w3.org/2005/Atom feed"`
    Title   string   `xml:"title"`
    ID      string   `xml:"id"`
    Link    Link     `xml:"link"`
    Updated string   `xml:"updated"`
    Entries []Entry  `xml:"entry"`
}

Feed ... TODO

func LoadFeed Uses

func LoadFeed(r io.Reader) (Feed, error)

LoadFeed ... TODO

func (Feed) LatestEntry Uses

func (f Feed) LatestEntry() Entry

LatestEntry ... TODO

type Link struct {
    Rel  string `xml:"rel,attr"`
    Href string `xml:"href,attr"`
}

Link ... TODO

type Person Uses

type Person struct {
    Name string `xml:"name"`
}

Person ... TODO

type Text Uses

type Text struct {
    Type string `xml:"type,attr"`
    Body string `xml:"chardata"`
}

Text ... TODO

Package atom imports 2 packages (graph). Updated 2018-08-20. Refresh now. Tools for package owners.