6c4344623b
The main HCL package is more visible this way, and so it's easier than having to pick it out from dozens of other package directories.
17 lines
380 B
Go
17 lines
380 B
Go
package gohcl
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
"github.com/hashicorp/hcl/v2"
|
|
)
|
|
|
|
var victimExpr hcl.Expression
|
|
var victimBody hcl.Body
|
|
|
|
var exprType = reflect.TypeOf(&victimExpr).Elem()
|
|
var bodyType = reflect.TypeOf(&victimBody).Elem()
|
|
var blockType = reflect.TypeOf((*hcl.Block)(nil))
|
|
var attrType = reflect.TypeOf((*hcl.Attribute)(nil))
|
|
var attrsType = reflect.TypeOf(hcl.Attributes(nil))
|