render

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 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) *HtmlTemplate

func (*HtmlTemplate) CustomRenderWithOptions added in v0.4.5

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

func (*HtmlTemplate) Render added in v0.4.5

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

func (*HtmlTemplate) RenderObject added in v0.4.6

func (tpl *HtmlTemplate) RenderObject(obj interface{}) ([]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) *TextTemplate

func (*TextTemplate) CustomRenderWithOptions added in v0.4.5

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

func (*TextTemplate) Render added in v0.4.5

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

func (*TextTemplate) RenderObject added in v0.4.6

func (tpl *TextTemplate) RenderObject(obj interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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