Help us shape the future of Go! Take the 2026 Go Developer Survey

template

package
v0.0.91 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2016 License: Apache-2.0 Imports: 8 Imported by: 620

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluateOpts added in v0.0.87

type EvaluateOpts struct {
	ExpectAllKeys bool
}

type Template

type Template struct {
	// contains filtered or unexported fields
}

func NewTemplate

func NewTemplate(bytes []byte) Template

func (Template) Evaluate

func (t Template) Evaluate(vars Variables, ops patch.Ops, opts EvaluateOpts) ([]byte, error)

type VarKV

type VarKV struct {
	Name  string
	Value interface{}
}

func (*VarKV) UnmarshalFlag

func (a *VarKV) UnmarshalFlag(data string) error

type Variables

type Variables map[string]interface{}

func (Variables) Merge

func (v Variables) Merge(other Variables) Variables

type VarsFileArg

type VarsFileArg struct {
	FS boshsys.FileSystem

	Vars Variables
}

func (*VarsFileArg) UnmarshalFlag

func (a *VarsFileArg) UnmarshalFlag(filePath string) error

Jump to

Keyboard shortcuts

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