template

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDir added in v0.1.0

func ReadDir(suffix, dir string) (map[string]*Template, error)

Types

type AnswerCallback added in v0.1.0

type AnswerCallback func(key string, questions []v1.Question) (string, error)

func AnswersFromMap added in v0.1.0

func AnswersFromMap(answers map[string]string) AnswerCallback

type Template

type Template struct {
	Content     []byte
	BuiltinVars []string
}

func (*Template) Parse added in v0.1.0

func (t *Template) Parse(answers AnswerCallback) ([]byte, error)

func (*Template) Questions

func (t *Template) Questions() ([]v1.Question, error)

func (*Template) RequiredEnv

func (t *Template) RequiredEnv() ([]string, error)

func (*Template) Validate

func (t *Template) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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