//PutBool function will add the key,value to the properties. The value is accepted as bool however is is stored as
//a string. If the property was already present then the previous values is returned
PutBool function will add the key,value to the properties. The value is accepted as bool however is is stored as
a string. If the property was already present then the previous values is returned
// PutBool function will add the key value to the properties . The value is accepted as bool however is is stored as // a string . If the property was already present then the previous values is returned
func (p *Properties) PutBool(k string, v bool) (bool, error) {
	p.Lock()
	defer p.Unlock()
	var ret bool
	var err error = nil
	if oldValue, ok := p.props[k]; ok {
		ret, err = strconv.ParseBool(p.resolve(oldValue))
	}
	p.props[k] = createValue(k, strconv.FormatBool(v))
	p.resolveAll()
	return ret, err
}
func ( p * Properties ) PutBool ( k string , v bool ) ( bool , error ) { p . Lock ( ) defer p . Unlock ( ) var ret bool var err error = nil if oldValue , ok := p . props [ k ] ; ok { ret , err = strconv . ParseBool ( p . resolve ( oldValue ) ) } p . props [ k ] = createValue ( k , strconv . FormatBool ( v ) ) p . resolveAll ( ) return ret , err }
PutBool function will add the key,value to the properties.
PutBool function will add the key value to the properties .