import "hidevops.io/hiboot/pkg/utils/replacer"
Package replacer provides utilities that replace the reference and environment variables with its value
const ( // EmptyString is the empty string "" EmptyString = "" )
var ( // ErrNilPointer nil pointer error ErrNilPointer = errors.New("nil pointer error") // ErrInvalidObject invalid object error ErrInvalidObject = errors.New("invalid object") )
GetFieldValue get filed value in reflected format
GetMatches get compiled matches
GetReferenceValue get the value of the reference, e.g. ${app.name}
ParseReferences parse the variable references
ParseVariables parse reference and env variables
Replace given env and reference variables inside specific struct
ReplaceMap replace references and env variables
ReplaceStringVariables replace reference and env variables
Package replacer imports 7 packages (graph) and is imported by 4 packages. Updated 2019-05-20. Refresh now. Tools for package owners.