1
0
forked from ALHP/ALHP.GO

regen ent

This commit is contained in:
2022-10-28 18:14:20 +02:00
parent 186e1a66c3
commit 6895d66651
8 changed files with 70 additions and 67 deletions

View File

@@ -263,11 +263,11 @@ func IsConstraintError(err error) bool {
type selector struct {
label string
flds *[]string
scan func(context.Context, interface{}) error
scan func(context.Context, any) error
}
// ScanX is like Scan, but panics if an error occurs.
func (s *selector) ScanX(ctx context.Context, v interface{}) {
func (s *selector) ScanX(ctx context.Context, v any) {
if err := s.scan(ctx, v); err != nil {
panic(err)
}