func FindPotentialVariables(text []byte) []string {
	re := regexp.MustCompile(`\${([\w-]+)}`)

	groups := re.FindAllStringSubmatch(string(text), -1)

	names := make([]string, 0, len(groups))
	for _, group := range groups {
		names = append(names, group[1])
	}

	return names
}
// FindPotentialVariables returns a list of potential interpolation target names.
FindPotentialVariables returns a list of potential interpolation target names.
// FindPotentialVariables returns a list of potential interpolation target names .
func FindPotentialVariables(text []byte) []string {
	re := regexp.MustCompile(`\${([\w-]+)}`)
	groups := re.FindAllStringSubmatch(string(text), -1)
	names := make([]string, 0, len(groups))
	for _, group := range groups {
		names = append(names, group[1])
	}
	return names
}
func FindPotentialVariables ( text [ ] byte ) [ ] string { re := regexp . MustCompile ( `\${([\w-]+)}` ) groups := re . FindAllStringSubmatch ( string ( text ) , - 1 ) names := make ( [ ] string , 0 , len ( groups ) ) for _ , group := range groups { names = append ( names , group [ 1 ] ) } return names }
FindPotentialVariables returns a list of potential interpolation target names.
FindPotentialVariables returns a list of potential interpolation target names .