func StrToBool(val string) (bool, error) {
	// true values are 'y', 'yes', 't', 'true', 'on', and '1'
	// false values are 'n', 'no', 'f', 'false', 'off', and '0'.
	val = strings.ToLower(val)
	if res, ok := strToBoolMap[val]; ok {
		return res, nil
	}
	return false, fmt.Errorf("invalid truth value %s", val)
}
// StrToBool convert a string representation of truth to a boolean true or false.
StrToBool convert a string representation of truth to a boolean true or false.
// StrToBool convert a string representation of truth to a boolean true or false .
func StrToBool(val string) (bool, error) {
	val = strings.ToLower(val)
	if res, ok := strToBoolMap[val]; ok {
		return res, nil
	}
	return false, fmt.Errorf("invalid truth value %s", val)
}
func StrToBool ( val string ) ( bool , error ) { val = strings . ToLower ( val ) if res , ok := strToBoolMap [ val ] ; ok { return res , nil } return false , fmt . Errorf ( " " , val ) }
StrToBool convert a string representation of truth to a boolean true or false.
StrToBool convert a string representation of truth to a boolean true or false .
// true values are 'y', 'yes', 't', 'true', 'on', and '1' // false values are 'n', 'no', 'f', 'false', 'off', and '0'.