compose

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compute added in v0.3.2

type Compute struct{}

func NewCompute added in v0.3.2

func NewCompute() *Compute

func (*Compute) Page added in v0.3.2

func (c *Compute) Page(model string, index int) (*Page, error)

func (*Compute) Top added in v0.3.2

func (c *Compute) Top(path string) ([]*Markdown, error)

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
	Page    *Page
	Top     []*Markdown
}

func NewMarkdown

func NewMarkdown() *Markdown

func (*Markdown) Item

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

func (*Markdown) List

func (m *Markdown) List(model string, page, size int) ([]*Markdown, error)

type Page added in v0.3.2

type Page struct {
	Index int
	Size  int
	Total int
	Pre   int
	Next  int
	Data  []int
	Path  string
}

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