func (f *Float) UnmarshalText(text []byte) error {
	str := string(text)
	if str == "" || str == "null" {
		f.Valid = false
		return nil
	}
	var err error
	f.Float64, err = strconv.ParseFloat(string(text), 64)
	f.Valid = err == nil
	return err
}
func (f *Float) UnmarshalText(text []byte) error {
	str := string(text)
	if str == "" || str == "null" {
		f.Valid = false
		return nil
	}
	var err error
	f.Float64, err = strconv.ParseFloat(string(text), 64)
	f.Valid = err == nil
	return err
}
func ( f * Float ) UnmarshalText ( text [ ] byte ) error { str := string ( text ) if str == " " || str == " " { f . Valid = false return nil } var err error f . Float64 , err = strconv . ParseFloat ( string ( text ) , 64 ) f . Valid = err == nil return err }
// UnmarshalText implements encoding.TextUnmarshaler.
// It will unmarshal to a null Float if the input is a blank or not an integer.
// It will return an error if the input is not an integer, blank, or "null".
UnmarshalText implements encoding . TextUnmarshaler . It will unmarshal to a null Float if the input is a blank or not an integer . It will return an error if the input is not an integer blank or null .