Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Content ¶
type Content struct {
// Regex is the regex to match the content.
// - If regex is not empty, Old will be ignored.
Regex string `cfg:"regex"`
// Old is the old content to replace.
Old string `cfg:"old"`
OldTemplate bool `cfg:"old_template"`
New string `cfg:"new"`
NewTemplate bool `cfg:"new_template"`
// Value from load name, key value and type is map[string]any
Value string `cfg:"value"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.