Documentation ¶
Index ¶
Constants ¶
View Source
const ( RuleModeDefault string = "" RuleModeFileDir = "filedir" RuleModeWorkDir = "workdir" )
View Source
const (
Version = "0.1.0-beta"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Replacer ¶
type Replacer struct { Writer io.Writer Reader io.Reader Path string Rules Rules MaxDepth int RootDir string IncludedPathSet map[string]struct{} // contains filtered or unexported fields }
func NewReplacerWithConfig ¶
type ReplacerConfig ¶
type ReplacerConfig struct {
Rules []*RuleConfig `json:"rules"`
}
type Rule ¶
type Rule struct { Regexp *regexp.Regexp PathFormat []byte Once bool OnceFormat []byte IgnoreError bool IgnoreErrorFormat []byte Mode string }
func NewRule ¶
func NewRule(config *RuleConfig) (*Rule, error)
type RuleConfig ¶
Click to show internal directories.
Click to hide internal directories.