github.com/jdolitsky/cnab-go@v0.7.1-beta1/bundle/replacement/replacer.go (about) 1 package replacement 2 3 import "errors" 4 5 // Replacer replaces the values of fields matched by a selector. 6 type Replacer interface { 7 Replace(source string, selector string, value string) (string, error) 8 } 9 10 var ( 11 // ErrSelectorNotFound is reported when the document does not 12 // contain a field matching the selector. 13 ErrSelectorNotFound = errors.New("Selector not found") 14 )