render

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 20 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HtmlTemplate

type HtmlTemplate struct {
	Template
	// contains filtered or unexported fields
}

func NewHtmlTemplate

func NewHtmlTemplate(options TemplateOptions, stdout *common.Stdout) *HtmlTemplate

func (*HtmlTemplate) RenderCustomHtml

func (tpl *HtmlTemplate) RenderCustomHtml(opts TemplateOptions) ([]byte, error)

func (*HtmlTemplate) RenderHtml

func (tpl *HtmlTemplate) RenderHtml() ([]byte, error)

type Template

type Template struct {
	// contains filtered or unexported fields
}

type TemplateOptions

type TemplateOptions struct {
	Name       string
	Object     string
	Content    string
	TimeFormat string
}

type TextTemplate

type TextTemplate struct {
	Template
	// contains filtered or unexported fields
}

func NewTextTemplate

func NewTextTemplate(options TemplateOptions, stdout *common.Stdout) *TextTemplate

func (*TextTemplate) RenderCustomText

func (tpl *TextTemplate) RenderCustomText(opts TemplateOptions) ([]byte, error)

func (*TextTemplate) RenderText

func (tpl *TextTemplate) RenderText() ([]byte, error)

Jump to

Keyboard shortcuts

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