//resolve  a value struct. This function will resolve the variables in the struct
resolve  a value struct. This function will resolve the variables in the struct
// resolve a value struct . This function will resolve the variables in the struct
func (p *Properties) resolve(v *value) string {
	var sb strings.Builder
	if v.hasVars {
		if varName, ok := v.vars[0]; ok {
			sb.WriteString(p.resolveAndGet(varName, createVarStructure(varName)))
		}
		for i, c := range v.content {
			if varName, ok := v.vars[i+1]; ok {
				sb.WriteString(c)
				sb.WriteString(p.resolveAndGet(varName, createVarStructure(varName)))
			}
		}
	} else {
		sb.WriteString(v.content[0])
	}
	return sb.String()
}
func ( p * Properties ) resolve ( v * value ) string { var sb strings . Builder if v . hasVars { if varName , ok := v . vars [ 0 ] ; ok { sb . WriteString ( p . resolveAndGet ( varName , createVarStructure ( varName ) ) ) } for i , c := range v . content { if varName , ok := v . vars [ i + 1 ] ; ok { sb . WriteString ( c ) sb . WriteString ( p . resolveAndGet ( varName , createVarStructure ( varName ) ) ) } } } else { sb . WriteString ( v . content [ 0 ] ) } return sb . String ( ) }
resolve  a value struct.
resolve a value struct .
//Check if the value starts with a variable