templater

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Templater

type Templater struct {
	Vars taskfile.Vars
	// contains filtered or unexported fields
}

Templater is a help struct that allow us to call "replaceX" funcs multiple times, without having to check for error each time. The first error that happen will be assigned to r.err, and consecutive calls to funcs will just return the zero value.

func (*Templater) Err

func (r *Templater) Err() error

func (*Templater) Replace

func (r *Templater) Replace(str string) string

func (*Templater) ReplaceSlice

func (r *Templater) ReplaceSlice(strs []string) []string

func (*Templater) ReplaceVars

func (r *Templater) ReplaceVars(vars taskfile.Vars) taskfile.Vars

Jump to

Keyboard shortcuts

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