package
0.11.5
Repository: https://github.com/tmpim/caddy.git
Documentation: pkg.go.dev

# Functions

FromJSON converts JSON-encoded jsonBytes to Caddyfile text.
NewDispenser returns a Dispenser, ready to use for parsing the given input.
NewDispenserTokens returns a Dispenser filled with the given tokens.
Parse parses the input just enough to group tokens, in order, by server block.
ToJSON converts caddyfile to its JSON representation.

# Structs

Dispenser is a type that dispenses tokens, similarly to a lexer, except that it can do so with some notion of structure and has some really convenient methods.
EncodedServerBlock represents a server block ripe for encoding.
ServerBlock associates any number of keys (usually addresses of some sort) with tokens (grouped by directive name).
No description provided by the author

# Type aliases

EncodedCaddyfile encapsulates a slice of EncodedServerBlocks.