buildr/internal/hcl/generic_block.go
Peter 1261932bdc
All checks were successful
continuous-integration/drone/push Build is passing
refactor: apply golangci-lint findings
2023-06-22 19:16:00 +02:00

18 lines
291 B
Go

package hcl
import (
"github.com/hashicorp/hcl/v2"
)
type GenericBlocks []GenericBlock
func (b GenericBlocks) Blocks() []GenericBlock {
return b
}
type GenericBlock struct {
BlockBody hcl.Body `hcl:",remain"`
ModuleName string `hcl:",label"`
BlockName string `hcl:",label"`
}