plugin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name  string `json:"name,omitempty"`
	Email string `json:"email,omitempty"`
}

type Feeds

type Feeds struct {
	Title    string   `json:"title,omitempty"`
	Link     string   `json:"url,omitempty"`
	ID       string   `json:"id,omitempty"`
	Summary  string   `json:"summary,omitempty"`
	Content  string   `json:"content,omitempty"`
	Created  string   `json:"date_published,omitempty"`
	Language string   `json:"language,omitempty"`
	Author   *Author  `json:"author,omitempty"`
	Entry    []*Feeds `json:"items,omitempty"`
}

func NewFeeds

func NewFeeds() *Feeds

func (*Feeds) Atom

func (f *Feeds) Atom(args *Feeds) (string, error)

func (*Feeds) JSON

func (f *Feeds) JSON(args *Feeds) (string, error)

func (*Feeds) RSS

func (f *Feeds) RSS(args *Feeds) (string, error)

type HTML

type HTML struct {
	Template *template.Template
}

func NewHTML

func NewHTML() *HTML

func (*HTML) Export

func (h *HTML) Export(path, name string, data interface{}) error

func (*HTML) Render

func (h *HTML) Render(w io.Writer, name string, data interface{}) error

type I18N

type I18N struct {
	Bundle *i18n.Bundle
}

func NewI18N

func NewI18N() *I18N

func (*I18N) Parse

func (i *I18N) Parse(lang, s string) string

type Markdown

type Markdown struct{}

func NewMarkdown

func NewMarkdown() *Markdown

func (*Markdown) Content

func (m *Markdown) Content(ctx parser.Context, source []byte) (*bytes.Buffer, error)

func (*Markdown) Table

func (m *Markdown) Table(ctx parser.Context, source []byte) (*bytes.Buffer, error)

type Sitemap

type Sitemap struct {
	Loc        string // localtion
	Lastmod    string // last update
	Changefreq string // change freq
	Priority   string // priority
}

func NewSitemap

func NewSitemap() *Sitemap

func (*Sitemap) Item

func (s *Sitemap) Item(args []*Sitemap) (string, error)

func (*Sitemap) List

func (s *Sitemap) List(args []*Sitemap) (string, error)

Jump to

Keyboard shortcuts

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