Help us shape the future of Go! Take the 2026 Go Developer Survey

template

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

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

func NewHelper

func NewHelper(timeLocation *time.Location, dateTimeFormat string) (*Helper, error)

func (*Helper) CreateTemplate

func (helper *Helper) CreateTemplate(templateString string) (*template.Template, error)

func (*Helper) ExecuteTemplate

func (helper *Helper) ExecuteTemplate(templateString string, data any) (string, error)

func (*Helper) RegisterFunction

func (helper *Helper) RegisterFunction(name string, function any)

func (*Helper) StandardDate

func (helper *Helper) StandardDate(date any) string

func (*Helper) TimeLocation

func (helper *Helper) TimeLocation() *time.Location

Jump to

Keyboard shortcuts

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