package
0.0.0-20191002203319-fb75b3253c80
Repository: https://github.com/hashicorp/hcl2.git
Documentation: pkg.go.dev
# Functions
PackNativeFile parses the given source code as HCL native syntax and packs it into a hclpack Body ready to be marshalled.
# Constants
ExprLiteralJSON indicates that an expression must be parsed as JSON and treated literally, using cty/json.
ExprNative indicates that an expression must be parsed as native expression syntax, with hclsyntax.ParseExpression.
ExprTemplate indicates that an expression must be parsed as native template syntax, with hclsyntax.ParseTemplate.
# Structs
Attribute represents an attribute definition within a body.
Block represents a nested block within a body.
Body is an implementation of hcl.Body.
Expression is an implementation of hcl.Expression in terms of some raw expression source code.
# Type aliases
ExprSourceType defines the syntax type used for an expression's source code, which is then used to select a suitable parser for it when evaluating.