tools: golang.org/x/tools/blog/atom Index | Files

package atom

import "golang.org/x/tools/blog/atom"

Package atom defines XML data structures for an Atom feed.

Index

Package Files

atom.go

type Entry Uses

type Entry struct {
    Title     string  `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"`
}

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 TimeStr  `xml:"updated"`
    Author  *Person  `xml:"author"`
    Entry   []*Entry `xml:"entry"`
}
type Link struct {
    Rel      string `xml:"rel,attr,omitempty"`
    Href     string `xml:"href,attr"`
    Type     string `xml:"type,attr,omitempty"`
    HrefLang string `xml:"hreflang,attr,omitempty"`
    Title    string `xml:"title,attr,omitempty"`
    Length   uint   `xml:"length,attr,omitempty"`
}

type Person Uses

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

type Text Uses

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

type TimeStr Uses

type TimeStr string

func Time Uses

func Time(t time.Time) TimeStr

Package atom imports 2 packages (graph) and is imported by 13 packages. Updated 2017-08-16. Refresh now. Tools for package owners.