render

package
v0.0.0-...-70df4e6 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CacheSize tpl cache size
	CacheSize = 1000
)

Functions

This section is empty.

Types

type TplProvider

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

func NewCachedTplProvider

func NewCachedTplProvider(maxSize int) *TplProvider

func (*TplProvider) GetTpl

func (c *TplProvider) GetTpl(tplText string) (*template.Template, error)

type TplRender

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

func NewTplRender

func NewTplRender() *TplRender

func (*TplRender) Render

func (t *TplRender) Render(tplText string, data interface{}) (string, error)

Jump to

Keyboard shortcuts

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