interpolation

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package interpolation exposes the HIL (Hashicorp Interpolation Language)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(templateString string, variables map[string]any) (any, error)

Eval evaluates the tempate string using hil https://github.com/hashicorp/hil with the given variables that can be accessed form the string.

func IsHILExpression

func IsHILExpression(template string) bool

IsHILExpression returns true if the template is a HIL expression and false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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