Versions in this module Expand all Collapse all v2 v2.9.9 May 18, 2022 Changes in this version + func Process(caddyfileContent []byte) ([]byte, []byte) + type Block struct + Keys []string + Order int + func CreateBlock() *Block + func (block *Block) AddKeys(keys ...string) + func (block *Block) GetFirstKey() string + func (block *Block) IsGlobalBlock() bool + func (block *Block) IsMatcher() bool + func (block *Block) IsSnippet() bool + func (block *Block) Marshal() []byte + type Container struct + Children []*Block + func CreateContainer() *Container + func FromLabels(labels map[string]string, templateData interface{}, ...) (*Container, error) + func Unmarshal(caddyfileContent []byte) (*Container, error) + func (container *Container) AddBlock(block *Block) + func (container *Container) GetAllByFirstKey(firstKey string) []*Block + func (container *Container) Marshal() []byte + func (container *Container) Remove(blockToDelete *Block) + func (containerA *Container) Merge(containerB *Container) + type Token struct + File string + Line int + Text string