mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
resources/page: Use reflect.TypeFor
This commit is contained in:
@@ -104,9 +104,9 @@ func (p PagesGroup) Reverse() PagesGroup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
errorType = reflect.TypeOf((*error)(nil)).Elem()
|
errorType = reflect.TypeFor[error]()
|
||||||
pagePtrType = reflect.TypeOf((*Page)(nil)).Elem()
|
pagePtrType = reflect.TypeFor[Page]()
|
||||||
pagesType = reflect.TypeOf(Pages{})
|
pagesType = reflect.TypeFor[Pages]()
|
||||||
)
|
)
|
||||||
|
|
||||||
// GroupBy groups by the value in the given field or method name and with the given order.
|
// GroupBy groups by the value in the given field or method name and with the given order.
|
||||||
|
Reference in New Issue
Block a user