| 1 |
# HUML configuration example |
| 2 |
# This demonstrates various HUML syntax features |
| 3 |
|
| 4 |
# Basic key-value pairs |
| 5 |
app_name: "koanf-huml-test" |
| 6 |
version: "1.0.0" |
| 7 |
debug: true |
| 8 |
port: 8080 |
| 9 |
timeout: 30.5 |
| 10 |
|
| 11 |
# Arrays |
| 12 |
tags:: "web", "api", "go" |
| 13 |
ports:: 80, 443, 8080 |
| 14 |
|
| 15 |
# Nested objects |
| 16 |
database:: |
| 17 |
host: "localhost" |
| 18 |
port: 5432 |
| 19 |
name: "testdb" |
| 20 |
ssl: false |
| 21 |
# More complex nesting |
| 22 |
server:: |
| 23 |
http:: |
| 24 |
port: 8080 |
| 25 |
timeout: 30 |
| 26 |
https:: |
| 27 |
port: 8443 |
| 28 |
cert: "/path/to/cert.pem" |
| 29 |
key: "/path/to/key.pem" |
| 30 |
|
| 31 |
# Environment-specific settings |
| 32 |
environments:: |
| 33 |
development:: |
| 34 |
debug: true |
| 35 |
log_level: "debug" |
| 36 |
production:: |
| 37 |
debug: false |
| 38 |
log_level: "info" |