libjet

package
v0.0.0-...-60192f8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package libjet provides some utility functions for Jet templates.

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 ToInt

func ToInt(v reflect.Value) int

ToInt returns a value as an integer value.

func ToString

func ToString(v reflect.Value) string

ToString converts a value to a string.

func VarMap

func VarMap() map[string]interface{}

VarMap returns the jet global variable map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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