template

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template added in v0.0.5

type Template struct {
	Values string          `json:"values" yaml:"values"`
	Items  []TemplateEntry `json:"items" yaml:"items"`
}

func (Template) LoadValuesFile added in v0.0.5

func (t Template) LoadValuesFile() (map[string]interface{}, error)

type TemplateEntry

type TemplateEntry struct {
	Template string `json:"template" yaml:"template"`
	Output   string `json:"output" yaml:"output"`
}

func (TemplateEntry) Execute

func (t TemplateEntry) Execute(wr io.Writer, values map[string]interface{}) error

func (TemplateEntry) LoadTemplateFile

func (t TemplateEntry) LoadTemplateFile() (string, error)

func (TemplateEntry) WriteToFile

func (t TemplateEntry) WriteToFile(values map[string]interface{}) error

Jump to

Keyboard shortcuts

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