Documentation
¶
Index ¶
- Variables
- func ExtractArgsFrom(in string) []string
- func ExtractResourceFrom(line string) string
- func ExtractVariablesFrom(in string) []string
- func GetIndentOf(line string) (indent int)
- func GetIndentString(indent int) string
- func IsStringifiable(variable Variable) bool
- func SubstituteArray(file *drive.JsonFile, env Env, path string) error
- func SubstituteJsonFile(file *drive.JsonFile, env Env) error
- func SubstituteObject(file *drive.JsonFile, env Env, path string) error
- func SubstituteSmartString(file *drive.JsonFile, env Env, path string, value Variable) error
- func SubstituteString(in string, env Env) (string, error)
- func TypeOf(variable Variable) gjson.Type
- func WriteIndentString(writer io.Writer, indent int)
- type Columns
- type Env
- type Node
- func (node *Node) Append(child *Node)
- func (node *Node) EndsWithBackslash() bool
- func (node *Node) ExtractResource() string
- func (node *Node) Format(location string) *Node
- func (node *Node) IsRoot() bool
- func (node *Node) MakeErrorContext(i int) liberrors.Context
- func (node *Node) Print(writer io.Writer, indent int)
- func (node *Node) String() string
- type Rows
- type SimpleVariable
- type Variable
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRemoveKey = errors.New("internal.remove_variable")
Functions ¶
func ExtractArgsFrom ¶
Similar to strings.Fields(), except it recognizes quoted elements.
func ExtractResourceFrom ¶
func ExtractVariablesFrom ¶
func GetIndentOf ¶
func GetIndentString ¶
func IsStringifiable ¶
func SubstituteSmartString ¶
func WriteIndentString ¶
Types ¶
type SimpleVariable ¶
type SimpleVariable string
func (SimpleVariable) String ¶
func (variable SimpleVariable) String() string
func (SimpleVariable) Value ¶
func (variable SimpleVariable) Value() any
Click to show internal directories.
Click to hide internal directories.