Versions in this module Expand all Collapse all v0 v0.57.0 Apr 18, 2025 v0.56.2 Apr 14, 2025 Changes in this version + func Decode(ctx *hcl.EvalContext, body hcl.Body, val any) hcl.Diagnostics + func DecodeBlock(ctx *hcl.EvalContext, block *hcl.Block, val any) hcl.Diagnostics + func DecodeExpression(ctx *hcl.EvalContext, expr hcl.Expression, val any) hcl.Diagnostics + func Encode(val any, block *Block) hcl.Diagnostics + func EncodeBlock(val any, block *Block, typeName string, labels []string) hcl.Diagnostics + func ParseFile(path string, subject *hcl.Range) (hcl.Body, hcl.Diagnostics) + func ParseFileFS(f fs.FS, path string, subject *hcl.Range) (hcl.Body, hcl.Diagnostics) + func ParseSource(filename string, src []byte) (hcl.Body, hcl.Diagnostics) + func ParseSources(srcs map[string][]byte) (hcl.Body, hcl.Diagnostics) + type Attribute struct + Name string + Value any + type Block struct + Attributes []*Attribute + Blocks []*Block + Labels []string + TypeName string + func (b *Block) AppendAttribute(name string, value any) + func (b *Block) AppendBlock(typeName string, labels []string) *Block + func (b *Block) Bytes() ([]byte, hcl.Diagnostics) + func (b *Block) Write(hclBody *hclwrite.Body) hcl.Diagnostics + type Marshaler interface + MarshalHCL func() (cty.Value, error) + type OnEncodeBlock interface + OnEncodeBlock func(block *Block) hcl.Diagnostics + type PostDecodeAttribute interface + PostDecodeAttribute func(*hcl.EvalContext, *hcl.Attribute) hcl.Diagnostics + type PostDecodeBlock interface + PostDecodeBlock func(*hcl.EvalContext, *hcl.BodySchema, *hcl.Block, *hcl.BodyContent) hcl.Diagnostics + type PreDecodeAttribute interface + PreDecodeAttribute func(*hcl.EvalContext, *hcl.Attribute) hcl.Diagnostics + type PreDecodeBlock interface + PreDecodeBlock func(*hcl.EvalContext, *hcl.BodySchema, *hcl.Block, *hcl.BodyContent) hcl.Diagnostics + type Unmarshaler interface + UnmarshalHCL func(cty.Value) error Other modules containing this package github.com/chronicleprotocol/go-lib