template

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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