templates

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 0 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VariableMap

type VariableMap map[string]interface{}

VariableMap is a map of strings to interface values, for use in template processing.

func MergeVariableMaps

func MergeVariableMaps(ms ...VariableMap) VariableMap

MergeVariableMaps creates a new variable map that merges its arguments, from first to last.

func (VariableMap) Bool

func (m VariableMap) Bool(k string, defaultValue bool) bool

Bool returns m[k] if it's a bool; else defaultValue.

func (VariableMap) String

func (m VariableMap) String(k string, defaultValue string) string

String returns m[k] if it's a string; else defaultValue.

Jump to

Keyboard shortcuts

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