Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailedToProcessHclFile = errors.New("failed to process HCL file")
Functions ¶
func DetectFormatAndParseFile ¶
func DetectFormatAndParseFile(readFileFunc func(string) ([]byte, error), filename string) (any, error)
DetectFormatAndParseFile detects the format of the file (JSON, YAML, HCL) and parses the file into a Go type. For all other formats, it just reads the file and returns the content as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.