template

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewTemplateInput

type NewTemplateInput struct {
	Source        string
	Contents      string
	LeftDelim     string
	RightDelim    string
	ErrMissingKey bool
	Options       map[string]string
}

NewTemplateInput represents the input to a new Template

type Template

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

Template is the internal representation of a template

func NewTemplate

func NewTemplate(i *NewTemplateInput) (*Template, error)

NewTemplate generates a new template

func (*Template) Render

func (t *Template) Render() ([]byte, error)

Render renders the template using Consul-Template

Jump to

Keyboard shortcuts

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