Skip to content

open-webtech/go-xaddy-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

go-xaddy-config

A configuration parser and evaluator for Caddyfile-style configuration formats, specifically implementing the subset used in Maddy (Caddy for Mail). This provides a familiar and proven configuration syntax for Go applications.

Features

  • Caddyfile-style Syntax: Uses the same intuitive configuration format as Caddy and Maddy
  • Block Structure: Support for nested configuration blocks and directives
  • Schema-based Configuration: Define and validate configuration structures using a flexible schema system
  • Type Safety: Strong type checking for configuration values
  • Error Handling: Comprehensive error reporting for configuration issues

Configuration Format

The configuration follows the Caddyfile format style, as used in Maddy:

# Basic directive
simple_directive value

# Block directive
block_name {
    nested_directive value
    another_setting value
}

# Multiple values
directive value1 value2 {
    nested_option
}

About

⚙️ Caddyfile-style configuration parser for Go

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published