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