aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/page/pages_sort.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/page/pages_sort.go')
-rw-r--r--resources/page/pages_sort.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/page/pages_sort.go b/resources/page/pages_sort.go
index 644f67e1e..02096dadd 100644
--- a/resources/page/pages_sort.go
+++ b/resources/page/pages_sort.go
@@ -322,7 +322,7 @@ func (p Pages) Reverse() Pages {
// Adjacent invocations on the same receiver with the same paramsKey will return a cached result.
//
// This may safely be executed in parallel.
-func (p Pages) ByParam(paramsKey interface{}) Pages {
+func (p Pages) ByParam(paramsKey any) Pages {
paramsKeyStr := cast.ToString(paramsKey)
key := "pageSort.ByParam." + paramsKeyStr
@@ -338,7 +338,7 @@ func (p Pages) ByParam(paramsKey interface{}) Pages {
return true
}
- isNumeric := func(v interface{}) bool {
+ isNumeric := func(v any) bool {
switch v.(type) {
case uint8, uint16, uint32, uint64, int, int8, int16, int32, int64, float32, float64:
return true