func (i *Int) UnmarshalText(text []byte) error {
	str := string(text)
	if str == "" || str == "null" {
		i.Valid = false
		return nil
	}
	var err error
	i.Int64, err = strconv.ParseInt(string(text), 10, 64)
	i.Valid = err == nil
	return err
}
func (i *Int) UnmarshalText(text []byte) error {
	str := string(text)
	if str == "" || str == "null" {
		i.Valid = false
		return nil
	}
	var err error
	i.Int64, err = strconv.ParseInt(string(text), 10, 64)
	i.Valid = err == nil
	return err
}
func ( i * Int ) UnmarshalText ( text [ ] byte ) error { str := string ( text ) if str == " " || str == " " { i . Valid = false return nil } var err error i . Int64 , err = strconv . ParseInt ( string ( text ) , 10 , 64 ) i . Valid = err == nil return err }
// UnmarshalText implements encoding.TextUnmarshaler.
// It will unmarshal to a null Int 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 Int 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 .