libjet

package
v0.0.0-...-d1a9080 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFuncToSet

func AddFuncToSet(set *jet.Set, key string)

AddFuncToSet adds a given function to a jet.Set template set.

func FuncMap

func FuncMap() map[string]jet.Func

FuncMap returns the jet function map.

func Indirect

func Indirect(val reflect.Value) (interface{}, bool)

Indirect returns the underlying value of a reflect.Value. It resolves pointers and indicates if the value is nil.

func IsEmpty

func IsEmpty(v reflect.Value) bool

IsEmpty returns true if the value is considered empty.

func ToDateFmt

func ToDateFmt(d reflect.Value, f reflect.Value) string

ToDateFmt returns a date formatted with the given format.

func ToString

func ToString(v reflect.Value) string

ToString converts a value to a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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