2017-09-11 23:00:31 +00:00
|
|
|
package gohcl
|
2017-05-21 19:44:07 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
|
2019-09-09 23:08:19 +00:00
|
|
|
"github.com/hashicorp/hcl/v2"
|
2017-05-21 19:44:07 +00:00
|
|
|
)
|
|
|
|
|
2017-09-11 23:40:37 +00:00
|
|
|
var victimExpr hcl.Expression
|
|
|
|
var victimBody hcl.Body
|
2017-05-21 19:44:07 +00:00
|
|
|
|
|
|
|
var exprType = reflect.TypeOf(&victimExpr).Elem()
|
|
|
|
var bodyType = reflect.TypeOf(&victimBody).Elem()
|
2017-09-11 23:40:37 +00:00
|
|
|
var blockType = reflect.TypeOf((*hcl.Block)(nil))
|
|
|
|
var attrType = reflect.TypeOf((*hcl.Attribute)(nil))
|
|
|
|
var attrsType = reflect.TypeOf(hcl.Attributes(nil))
|