variable

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeLiteral Type = 0
	TypeEnv          = 1
	TypeCommand      = 2
)

Variables

This section is empty.

Functions

func Compile

func Compile(template string, varMap map[string]string) string

func CompileArray

func CompileArray(templates []string, varMap map[string]string) []string

Types

type Type

type Type int

type Variable

type Variable struct {
	Key    string
	Value  string
	Type   Type
	Remote bool // If running with a command or get environmental variable, is it running remotely?
}

func Parse

func Parse(input string) (*Variable, error)

Jump to

Keyboard shortcuts

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