Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Replacement ¶
Replacement is regexp match and replacement strings
func (*Replacement) Replace ¶
func (r *Replacement) Replace(s string) string
Replace replaces s with r.Replacement if s matches r.Match
type Replacements ¶
type Replacements []*Replacement
func NewReplacements ¶
func NewReplacements(data []byte) (Replacements, error)
NewReplacements parses Replacements from a simple yaml key: value list
func NewReplacementsFromFile ¶
func NewReplacementsFromFile(path string) (Replacements, error)
NewReplacements parses Replacements from a file containing a simple yaml key: value list
func (Replacements) Replace ¶
func (r Replacements) Replace(s string) string
Replace processes all replacements on s in order
Click to show internal directories.
Click to hide internal directories.