Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Replacement ¶
type Replacement struct { Tag string Value string Paths []string PathsRequired bool // If true, the replacement will fail if path is not found Required bool Workdir string }
Replacements
func (*Replacement) Apply ¶
func (r *Replacement) Apply() (err error)
func (*Replacement) Check ¶
func (r *Replacement) Check() (bool, error)
Check checks if all paths have been replaced
func (*Replacement) IsPathReplaced ¶
func (r *Replacement) IsPathReplaced(path string) (bool, error)
IsPathReplaced checks an arbitrary path to see if the tag is found
type Set ¶
type Set []Replacement
Click to show internal directories.
Click to hide internal directories.