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:
Tom Wiesing 2024-04-08 23:30:15 +02:00
parent ee2f6e08c6
commit 84799afda2
No known key found for this signature in database
9 changed files with 19 additions and 19 deletions

View file

@ -1,12 +1,12 @@
package meta
import (
"reflect"
"sync"
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/sql"
"github.com/FAU-CDI/wisski-distillery/internal/models"
"github.com/tkw1536/pkglib/reflectx"
)
// Component meta is responsible for managing metadata per WissKI Instance
@ -27,7 +27,7 @@ var (
func (*Meta) TableInfo() component.TableInfo {
return component.TableInfo{
Model: reflectx.TypeFor[models.Metadatum](),
Model: reflect.TypeFor[models.Metadatum](),
Name: models.MetadataTable,
}
}