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