tplfunc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var All []Func
View Source
var Date = []Func{Now(), FormatDate()}
View Source
var Math = []Func{Rand()}
View Source
var String = []Func{
	Repeat(), Replace(),
	ToUpper(), ToLower(),
	SnakeCase(), CamelCase(), KebabCase(),
}

Functions

func FuncMap

func FuncMap(functions ...Func) template.FuncMap

Types

type Func

type Func func(funcMap template.FuncMap)

func CamelCase

func CamelCase() Func

func FormatDate

func FormatDate() Func

func KebabCase

func KebabCase() Func

func Now

func Now() Func

func Rand

func Rand() Func

func Repeat

func Repeat() Func

func Replace

func Replace() Func

func SnakeCase

func SnakeCase() Func

func ToLower

func ToLower() Func

func ToUpper

func ToUpper() Func

Jump to

Keyboard shortcuts

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