Home Download Docs Code Community
import "perkeep/pkg/importer/feed/atom"
Overview
Index

Overview ▾

Package atom defines XML data structures for an Atom feed.

Index

type Entry
type Feed
type Link
type Person
type Text
type TimeStr
    func Time(t time.Time) TimeStr

Package files

atom.go

type Entry

type Entry struct {
    Title     *Text   `xml:"title"`
    ID        string  `xml:"id"`
    Link      []Link  `xml:"link"`
    Published TimeStr `xml:"published"`
    Updated   TimeStr `xml:"updated"`
    Author    *Person `xml:"author"`
    Summary   *Text   `xml:"summary"`
    Content   *Text   `xml:"content"`
    XMLBase   string  `xml:"base,attr"`
}

type Feed

type Feed struct {
    XMLName xml.Name `xml:"feed"`
    Title   string   `xml:"title"`
    ID      string   `xml:"id"`
    Link    []Link   `xml:"link"`
    Updated TimeStr  `xml:"updated"`
    Author  *Person  `xml:"author"`
    Entry   []*Entry `xml:"entry"`
    XMLBase string   `xml:"base,attr"`
}
type Link struct {
    Rel  string `xml:"rel,attr"`
    Href string `xml:"href,attr"`
    Type string `xml:"type,attr"`
}

type Person

type Person struct {
    Name     string `xml:"name"`
    URI      string `xml:"uri"`
    Email    string `xml:"email"`
    InnerXML string `xml:",innerxml"`
}

type Text

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

type TimeStr

type TimeStr string

func Time

func Time(t time.Time) TimeStr
Website layout inspired by memcached.
Content by the authors.