compose

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog []*Markdown

func (Catalog) Len

func (c Catalog) Len() int

func (Catalog) Less

func (c Catalog) Less(i, j int) bool

func (Catalog) Swap

func (c Catalog) Swap(i, j int)

type Feeds

type Feeds struct {
	Model string
}

func NewFeeds

func NewFeeds(model string) *Feeds

func (*Feeds) Generate

func (f *Feeds) Generate(name string) (string, error)

type Lang

type Lang struct {
	State   bool
	Content string
}

type Markdown

type Markdown struct {
	Name    string
	Content string
	Date    string
	Meta    map[string]interface{}
	TOC     *TOC
	Lang    *Lang
}

func NewMarkdown

func NewMarkdown() *Markdown

func (*Markdown) Item

func (m *Markdown) Item(path string) *Markdown

func (*Markdown) List

func (m *Markdown) List(model string) *Catalog

type Sitemap

type Sitemap struct {
	Now    string
	Origin string
}

func NewSitemap

func NewSitemap() *Sitemap

func (*Sitemap) Item

func (s *Sitemap) Item(name string) (string, error)

func (*Sitemap) List

func (s *Sitemap) List() (string, error)

type TOC

type TOC struct {
	State   bool
	Content string
}

type YAML

type YAML struct{}

func NewYAML

func NewYAML() *YAML

func (*YAML) Generate

func (y *YAML) Generate(source []byte, name string) ([]byte, error)

Jump to

Keyboard shortcuts

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