// UnmarshalText is encoding.TextUnmarshaler interface implementation
UnmarshalText is encoding.TextUnmarshaler interface implementation
// UnmarshalText is encoding . TextUnmarshaler interface implementation
func (b *Bool) UnmarshalText(bts []byte) error {
	if len(bts) == 0 {
		return nil
	}
	str := strings.ToLower(string(bts))
	if str == "true" {
		b.set(true)
	} else if str == "false" {
		b.set(false)
	} else {
		return errors.New("unable to produce boolean from " + str)
	}
	return nil
}
func ( b * Bool ) UnmarshalText ( bts [ ] byte ) error { if len ( bts ) == 0 { return nil } str := strings . ToLower ( string ( bts ) ) if str == " " { b . set ( true ) } else if str == " " { b . set ( false ) } else { return errors . New ( " " + str ) } return nil }
UnmarshalText is encoding.TextUnmarshaler interface implementation
UnmarshalText is encoding . TextUnmarshaler interface implementation
// Empty value