mirror of https://github.com/Xhofe/alist
Merge bb089c1017
into 4f8bc478d5
commit
0e536ab349
|
@ -546,9 +546,9 @@ func (p *printer) setAttrPrefix(prefix, url string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem()
|
marshalerType = reflect.TypeFor[Marshaler]()
|
||||||
marshalerAttrType = reflect.TypeOf((*MarshalerAttr)(nil)).Elem()
|
marshalerAttrType = reflect.TypeFor[MarshalerAttr]()
|
||||||
textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
|
textMarshalerType = reflect.TypeFor[encoding.TextMarshaler]()
|
||||||
)
|
)
|
||||||
|
|
||||||
// marshalValue writes one or more XML elements representing val.
|
// marshalValue writes one or more XML elements representing val.
|
||||||
|
|
|
@ -44,7 +44,7 @@ const (
|
||||||
var tinfoMap = make(map[reflect.Type]*typeInfo)
|
var tinfoMap = make(map[reflect.Type]*typeInfo)
|
||||||
var tinfoLock sync.RWMutex
|
var tinfoLock sync.RWMutex
|
||||||
|
|
||||||
var nameType = reflect.TypeOf(Name{})
|
var nameType = reflect.TypeFor[Name]()
|
||||||
|
|
||||||
// getTypeInfo returns the typeInfo structure with details necessary
|
// getTypeInfo returns the typeInfo structure with details necessary
|
||||||
// for marshalling and unmarshalling typ.
|
// for marshalling and unmarshalling typ.
|
||||||
|
|
Loading…
Reference in New Issue