gosubst

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subst

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

Subst receives a values file, values type, input and renders the template replacing all variables present in the values file sending it to the output

func NewSubst

func NewSubst(valuesFile string, valuesType string, input io.Reader, output io.Writer) (*Subst, error)

NewSubst substitues values

func (Subst) Render

func (s Subst) Render() error

Render render template with the given values

type Values

type Values map[string]interface{}

Values holds data present in the values file

func (*Values) Env

func (v *Values) Env() map[string]string

Env exports all enviroments variable

Jump to

Keyboard shortcuts

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