template

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(command string, args []interface{}, inputs ...string) (string, error)

func FuncMap

func FuncMap() template.FuncMap

func Get

func Get(path string, varArgs ...interface{}) (interface{}, error)

func HasKey

func HasKey(path string, varArgs ...interface{}) (bool, error)

func ReadFile

func ReadFile(file string) (string, error)

func Required

func Required(warn string, val interface{}) (interface{}, error)

func RequiredEnv

func RequiredEnv(name string) (string, error)

func ToYaml

func ToYaml(v interface{}) (string, error)

func Tpl2yml

func Tpl2yml(tpl, yml string, data interface{}) error

Types

type Values

type Values = map[string]interface{}

func FromYaml

func FromYaml(str string) (Values, error)

func SetValueAtPath

func SetValueAtPath(path string, value interface{}, values Values) (Values, error)

Jump to

Keyboard shortcuts

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