basic

command
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 8 Imported by: 0

README

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
go run main.go

# Enable feature flags
export APP_FEATURES__ENABLE_METRICS=true
export APP_FEATURES__RATELIMIT=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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL