tmplutil

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(tmpl *template.Template, variables map[string]interface{}) (string, error)

Render text template with given `variables` Render-context

func RenderPanicErr

func RenderPanicErr(tmpl *template.Template, variables map[string]interface{}) string

Types

type TmplRenderData

type TmplRenderData map[string]interface{}

TmplRenderData 渲染模板的数据集

Jump to

Keyboard shortcuts

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