type refVarTransformer … // newRefVarTransformer returns a new refVarTransformer // that replaces $(VAR) style variables with values. // The fieldSpecs are the places to look for occurrences of $(VAR). func newRefVarTransformer( varMap map[string]interface{ … } // UnusedVars returns slice of Var names that were unused // after a Transform run. func (rv *refVarTransformer) UnusedVars() []string { … } // Transform replaces $(VAR) style variables with values. func (rv *refVarTransformer) Transform(m resmap.ResMap) error { … }