//GetAsBool Function will return the value as int64 for the specified key.If no value is present for the
//corresponding key then the default value is returned.In case the key is present and it is not a bool is thrown.
GetAsBool Function will return the value as int64 for the specified key.If no value is present for the
corresponding key then the default value is returned.In case the key is present and it is not a bool is thrown.
// GetAsBool Function will return the value as int64 for the specified key . If no value is present for the // corresponding key then the default value is returned . In case the key is present and it is not a bool is thrown .
func (p *Properties) GetAsBool(k string, defaultVal bool) (bool, error) {
	p.RLock()
	defer p.RUnlock()
	if value, ok := p.resolvedProps[k]; ok {
		return strconv.ParseBool(value)
	}
	return defaultVal, nil
}
func ( p * Properties ) GetAsBool ( k string , defaultVal bool ) ( bool , error ) { p . RLock ( ) defer p . RUnlock ( ) if value , ok := p . resolvedProps [ k ] ; ok { return strconv . ParseBool ( value ) } return defaultVal , nil }
GetAsBool Function will return the value as int64 for the specified key.If no value is present for the
corresponding key then the default value is returned.In case the key is present and it is not a bool is thrown.
GetAsBool Function will return the value as int64 for the specified key . If no value is present for the corresponding key then the default value is returned . In case the key is present and it is not a bool is thrown .