Documentation
¶
Overview ¶
Package hcl provides the HCL configuration decoder for CONGA applications.
Register Decode with conga.App.RegisterDecoder to enable HCL configuration support:
app.RegisterDecoder(".hcl", hcl.Decode)
Key Mapping ¶
Top-level HCL attributes match flag names using kebab-case, snake_case, or camelCase:
# config.hcl http-port = 8080 database_url = "postgres://localhost/db" maxRetries = 5
Blocks decode as nested maps keyed by block type; duplicate block types are rejected. Parse and semantic failures (undefined variables) wrap ErrParse, and an empty document decodes to an empty map.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrParse indicates a syntax or semantic error in HCL configuration. ErrParse = errors.New("hcl parse error") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.