There was an error while loading. Please reload this page.
1 parent 885cd29 commit bff4dddCopy full SHA for bff4ddd
resources/page/pagegroup.go
@@ -104,9 +104,9 @@ func (p PagesGroup) Reverse() PagesGroup {
104
}
105
106
var (
107
- errorType = reflect.TypeOf((*error)(nil)).Elem()
108
- pagePtrType = reflect.TypeOf((*Page)(nil)).Elem()
109
- pagesType = reflect.TypeOf(Pages{})
+ errorType = reflect.TypeFor[error]()
+ pagePtrType = reflect.TypeFor[Page]()
+ pagesType = reflect.TypeFor[Pages]()
110
)
111
112
// GroupBy groups by the value in the given field or method name and with the given order.
0 commit comments