Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML configuration #270

Closed
laoshanxi opened this issue Apr 29, 2024 · 1 comment
Closed

YAML configuration #270

laoshanxi opened this issue Apr 29, 2024 · 1 comment

Comments

@laoshanxi
Copy link
Owner

# YAML example for cross-application usage

# Configuration section
config:
  app_name: MyApp
  debug_mode: true
  log_level: 2

# Database configuration
database:
  host: localhost
  port: 5432
  username: myuser
  password: mypassword
  database_name: mydb

# API settings
api:
  endpoint: /api/v1
  timeout: 5000

# List of users
users:
  - name: John Doe
    age: 30
    email: johndoe@example.com
  - name: Jane Smith
    age: 25
    email: janesmith@example.com

# Default values for optional fields
defaults:
  timeout: 3000
  max_attempts: 3
@laoshanxi
Copy link
Owner Author

b0ddabc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant