Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Basic Example

Hands-on demonstration of Rigging's core features with a complete working example.

Quick Start

# Run with default config.yaml
go run main.go

# Override with environment variables
export APP_DATABASE__PASSWORD=secret123
export APP_SERVER__PORT=9090
go run main.go

Example Scenarios

# Switch to production environment
export APP_ENVIRONMENT=production
export APP_DATABASE__HOST=prod-db.example.com
export APP_DATABASE__SSL_MODE=require
go run main.go

# Enable feature flags
export APP_FEATURES__ENABLE_METRICS=true
export APP_FEATURES__RATE_LIMIT=5000
go run main.go

What This Example Shows

  • Multi-source loading (YAML + environment variables)
  • Tag-based and custom validation
  • Provenance tracking output
  • Secret redaction in config dumps

See the main README for complete documentation.