Documentation
¶
Overview ¶
Copyright 2026 YLD Limited SPDX-License-Identifier: Apache-2.0 Package filereader provides a generic, type-safe file reader that discovers files by extension and deserializes them into Go structs. It supports HCL and YAML formats with optional recursive directory traversal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader[T Updater] struct { // contains filtered or unexported fields }
Reader discovers and reads files of a given type T from disk.
func (*Reader[T]) CtyYaml ¶
CtyYaml unmarshals YAML content via the cty type system into a value of type T.
func (*Reader[T]) FromHCL ¶
FromHCL reads HCL files from path, parses them, and returns a merged HCL body.
Click to show internal directories.
Click to hide internal directories.