packer-cn/hcl2template/types.hcl_ref.go
Adrien Delorme 2b0e0d4eab add hcl2template pkg
Package hcl2template defines code to parse hcl2 template files correctly.

In order to configure a packer builder,provisioner,communicator and post
processor.

Checkout the files in testdata/complete/ to see what a packer config could
look like.
2019-10-15 12:56:42 +02:00

21 lines
393 B
Go

package hcl2template
import (
"github.com/hashicorp/hcl/v2"
)
// reference to the source definition in configuration text file
type HCL2Ref struct {
// reference to the source definition in configuration text file
DeclRange hcl.Range
// remainder of unparsed body
Remain hcl.Body
}
// func (hr *HCL2Ref) Blah() {
// // hr.Remain.
// ctyjson.Marshal(nil, nil)
// hr.DeclRange.
// }