Adds internal/config package using gopkg.in/yaml.v3 and reflection for generic environment variable overrides. Updates main.go to load config and set log level. Adds tests and example config.
8 lines
260 B
YAML
8 lines
260 B
YAML
# Application Configuration
|
|
# This file contains the default configuration for the application.
|
|
# Values can be overridden by environment variables with the prefix "APP_".
|
|
# Example: APP_LOG_LEVEL=debug
|
|
|
|
# Log Level: debug, info, warn, error
|
|
log_level: "info"
|