renderizer

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(settings Options) error

Types

type Options

type Options struct {
	// Capitalization is a positional toggles. The following variable names are capitalized (title-case).
	Capitalize bool
	// Set the Missing Key template option. Defaults to "error".
	MissingKey string
	//
	Config map[string]interface{}
	//
	Arguments []string
	//
	Templates []string
	// Add the environment map to the variables.
	Environment string
	//
	TimeFormat string
	//
	Stdin bool
	//
	Debugging bool
	//
	Verbose bool
	//
	Testing bool
}

func (*Options) Render

func (settings *Options) Render() error

func (Options) Retyper

func (settings Options) Retyper(source map[string]interface{}, options ...retyperOptions) map[string]interface{}

Coerce m slices to type-specific slices where applicable

type Renderizer

type Renderizer interface {
	Render() error
}

func New

func New(settings Options) Renderizer

Jump to

Keyboard shortcuts

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