views

package
v0.0.0-...-b3003cd Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

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

func MustParse

func MustParse(t Template, err error) Template

func ParseFS

func ParseFS(fs fs.FS, pattern ...string) (Template, error)

Parses a template so it can be executed

func (Template) Execute

func (t Template) Execute(w http.ResponseWriter, r *http.Request, data interface{})

Loads a template with specific data, typically in a gohtml file

Jump to

Keyboard shortcuts

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