//Put function will add the key,value to the properties. If the property was already present then the previous values is
//returned
Put function will add the key,value to the properties. If the property was already present then the previous values is
returned
// Put function will add the key value to the properties . If the property was already present then the previous values is // returned
func (p *Properties) Put(k, v string) string {
	p.Lock()
	defer p.Unlock()
	var ret string
	if oldVal, ok := p.props[k]; ok {
		ret = p.resolve(oldVal)
	}
	p.props[k] = createValue(k, v)
	p.resolveAll()
	return ret
}
func ( p * Properties ) Put ( k , v string ) string { p . Lock ( ) defer p . Unlock ( ) var ret string if oldVal , ok := p . props [ k ] ; ok { ret = p . resolve ( oldVal ) } p . props [ k ] = createValue ( k , v ) p . resolveAll ( ) return ret }
Put function will add the key,value to the properties.
Put function will add the key value to the properties .