config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// MissingKeyInvalidOption is the renderer option to continue execution on missing key and print "<no value>"
	MissingKeyInvalidOption = "missingkey=invalid"
	// MissingKeyErrorOption is the renderer option to stop execution immediately with an error on missing key
	MissingKeyErrorOption = "missingkey=error"
	// MissingKeyZeroOption is the renderer option to continue execution with 'zero values' instead of missing key
	MissingKeyZeroOption = "missingkey=zero"
	// LeftDelim is the default left template delimiter
	LeftDelim = "{{"
	// RightDelim is the default right template delimiter
	RightDelim = "}}"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Parameters     map[string]interface{}
	Options        []string
	LeftDelim      string
	RightDelim     string
	ExtraFunctions template.FuncMap
}

Config holds the renderer configuration

Jump to

Keyboard shortcuts

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