Documentation
¶
Overview ¶
Package toml provides the TOML configuration decoder for CONGA applications.
Register Decode with conga.App.RegisterDecoder to enable TOML configuration support:
app.RegisterDecoder(".toml", toml.Decode)
Key Mapping ¶
Top-level TOML keys match flag names using kebab-case, snake_case, or camelCase:
# config.toml http-port = 8080 database_url = "postgres://localhost/db" maxRetries = 5
Parse failures 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 parsing error in TOML configuration. ErrParse = errors.New("toml parse error") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.