Versions in this module Expand all Collapse all v0 v0.9.0 Aug 7, 2020 Changes in this version + type Article struct + Body body + Head head + Lang string + Prefix string + func (a *Article) AddAd(position int, src string, width, height int, style, code string) + func (a *Article) AddAuthor(name, link, description string) + func (a *Article) AddFigure(f Figure) + func (a *Article) AddParagraph(html string) + func (a *Article) InsertAd(position int, src string, width, height int, style, code string) + func (a *Article) InsertFigure(position int, f Figure) + func (a *Article) SetAutomaticAd(src string, width, height int, style, code string) + func (a *Article) SetCanonical(url string) + func (a *Article) SetContent(html string) + func (a *Article) SetCoverImage(url, caption string) + func (a *Article) SetCoverVideo(url, videoType, caption string) + func (a *Article) SetFooter(credits, copyright string) + func (a *Article) SetKick(kick string) + func (a *Article) SetLang(lang string) + func (a *Article) SetModified(date time.Time) + func (a *Article) SetPublish(date time.Time) + func (a *Article) SetStyle(style string) + func (a *Article) SetSubtitle(subtitle string) + func (a *Article) SetTitle(title string) + func (a *Article) SetTrackerCode(code string) + func (a *Article) SetTrackerURL(url string) + func (a Article) HTML() ([]byte, error) + func (a Article) MarshalXML(e *xml.Encoder, start xml.StartElement) error + type Content []ContentTag + func (c Content) MarshalXML(e *xml.Encoder, start xml.StartElement) error + type ContentTag interface + StartElement func() xml.StartElement + type Feed struct + Channel channel + Content string + Version string + func (f *Feed) AddArticle(a Article) error + func (f *Feed) AddArticleWithGUID(a Article, guid string) error + func (f *Feed) SetDescription(s string) + func (f *Feed) SetLanguage(l string) + func (f *Feed) SetLink(url string) + func (f *Feed) SetTitle(s string) + func (f Feed) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (f Feed) RSS() ([]byte, error) + type Figure struct + Class string + Figcaption string + IFrame *IFrame + Img *Img + Video *Video + func (f Figure) StartElement() xml.StartElement + type IFrame struct + Height string + Hidden string + Src string + Style string + Text string + Width string + type Img struct + Src string + type Meta struct + Charset string + Content string + Property string + type P struct + Text string + func (p P) StartElement() xml.StartElement + type Time struct + Class string + Datetime string + Text string + type Video struct + Source source