// Scan is sql.Scanner interface implementation
Scan is sql.Scanner interface implementation
// Scan is sql . Scanner interface implementation
func (b *Bool) Scan(src interface{}) error {
	if src == nil {
		*b = Bool{}
		return nil
	}
	switch x := src.(type) {
	case []byte:
		sc := string(x)
		b.set(sc == "true" || sc == "1")
	case bool:
		b.set(x)
	default:
		return fmt.Errorf("unsupported type %T for scanning", src)
	}
	return nil
}
func ( b * Bool ) Scan ( src interface { } ) error { if src == nil { * b = Bool { } return nil } switch x := src . ( type ) { case [ ] byte : sc := string ( x ) b . set ( sc == " " || sc == " " ) case bool : b . set ( x ) default : return fmt . Errorf ( " " , src ) } return nil }
Scan is sql.Scanner interface implementation
Scan is sql . Scanner interface implementation