template

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTML added in v0.12.5

func HTML(tmpl string, data any) (string, error)

func Render

func Render(tmpl string, data any) (string, error)

Types

type HTMLTemplate added in v0.12.5

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

func CompileHTML added in v0.12.5

func CompileHTML(name string, src string) (HTMLTemplate, error)

func (HTMLTemplate) Render added in v0.12.5

func (t HTMLTemplate) Render(data any) (string, error)

type Template added in v0.12.5

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

func Compile added in v0.12.5

func Compile(name string, src string) (Template, error)

func (Template) Render added in v0.12.5

func (t Template) Render(data any) (string, error)

Jump to

Keyboard shortcuts

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