replacement

package
v0.0.0-...-6801fd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL