appconfig

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Example demonstrating how to extend Prefab's configuration system with application-specific configuration.

This example shows three ways to configure an application: 1. Via WithConfigDefaults() for default values 2. Via YAML file (app.yaml) 3. Via environment variables (PF__MYAPP__*)

Run with:

go run examples/appconfig/main.go

Or with environment overrides:

PF__MYAPP__CACHE_REFRESH_INTERVAL=30s go run examples/appconfig/main.go

Jump to

Keyboard shortcuts

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