Directories
¶
| Path | Synopsis |
|---|---|
|
Package main shows YAML file loading and struct binding with Synthra.
|
Package main shows YAML file loading and struct binding with Synthra. |
|
Package main loads local YAML, optionally merges Consul KV, then env.
|
Package main loads local YAML, optionally merges Consul KV, then env. |
|
Package main demonstrates cross-field checks with synthra.WithValidator.
|
Package main demonstrates cross-field checks with synthra.WithValidator. |
|
Package main shows merge order: baked-in defaults, then file, then env.
|
Package main shows merge order: baked-in defaults, then file, then env. |
|
Package main writes the merged effective configuration to a YAML file.
|
Package main writes the merged effective configuration to a YAML file. |
|
Package main demonstrates loading configuration from environment variables with Synthra.
|
Package main demonstrates loading configuration from environment variables with Synthra. |
|
Package main loads JSON and TOML with explicit codecs via WithFileAs.
|
Package main loads JSON and TOML with explicit codecs via WithFileAs. |
|
Package main demonstrates JSON Schema validation on loaded configuration.
|
Package main demonstrates JSON Schema validation on loaded configuration. |
|
Package main demonstrates JSON Schema defaults and WithEnvSubst.
|
Package main demonstrates JSON Schema defaults and WithEnvSubst. |
|
Package main exists so `go run .` works; see README and *_test.go.
|
Package main exists so `go run .` works; see README and *_test.go. |
|
Package main demonstrates layered configuration (YAML defaults plus environment overrides), struct binding, and validation with Synthra.
|
Package main demonstrates layered configuration (YAML defaults plus environment overrides), struct binding, and validation with Synthra. |
Click to show internal directories.
Click to hide internal directories.