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
|
|
@ -4,12 +4,12 @@ import (
|
|||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"reflect"
|
||||
"time"
|
||||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component/server/assets"
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/tkw1536/pkglib/reflectx"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ func (rf RuntimeFlags) TookHTML() template.HTML {
|
|||
return template.HTML(fmt.Sprintf("<time datetime=\"P%.3f\">%s</time>", took.Seconds(), took))
|
||||
}
|
||||
|
||||
var runtimeFlagsName = reflectx.TypeFor[RuntimeFlags]().Name()
|
||||
var runtimeFlagsName = reflect.TypeFor[RuntimeFlags]().Name()
|
||||
|
||||
// Clone clones this flags
|
||||
func (flags Flags) Clone() Flags {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue