templates

package
v0.0.0-...-3479ee1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(log *logging.Logger, templateName, destinationPath string, options interface{}, destinationFileMode os.FileMode, config ...TemplateConfigurator) (bool, error)

Render updates the given destinationPath according to the given template and options. Returns true if the file was created or changed, false if nothing has changed.

Types

type TemplateConfigurator

type TemplateConfigurator func(*template.Template)

Jump to

Keyboard shortcuts

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