reflectx.TypeFor => reflect.TypeFor
Since go1.22 it is now in the standard library and is removed from a future versio from pkglib
This commit is contained in:
parent
ee2f6e08c6
commit
84799afda2
9 changed files with 19 additions and 19 deletions
|
|
@ -1,9 +1,10 @@
|
|||
package sql
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
"github.com/tkw1536/pkglib/reflectx"
|
||||
)
|
||||
|
||||
// This file defines additional tables used by multiple components
|
||||
|
|
@ -18,7 +19,7 @@ var (
|
|||
|
||||
func (*InstanceTable) TableInfo() component.TableInfo {
|
||||
return component.TableInfo{
|
||||
Model: reflectx.TypeFor[models.Instance](),
|
||||
Model: reflect.TypeFor[models.Instance](),
|
||||
Name: models.InstanceTable,
|
||||
}
|
||||
}
|
||||
|
|
@ -33,7 +34,7 @@ var (
|
|||
|
||||
func (*LockTable) TableInfo() component.TableInfo {
|
||||
return component.TableInfo{
|
||||
Model: reflectx.TypeFor[models.Lock](),
|
||||
Model: reflect.TypeFor[models.Lock](),
|
||||
Name: models.LockTable,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue