summaryrefslogtreecommitdiffstats
path: root/hugolib/collections.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/collections.go')
-rw-r--r--hugolib/collections.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/collections.go b/hugolib/collections.go
index 9b4f83cc6..933f7dadc 100644
--- a/hugolib/collections.go
+++ b/hugolib/collections.go
@@ -28,7 +28,7 @@ var (
// implementations have no value on their own.
// Slice is not meant to be used externally. It's a bridge function
-func (p *pageState) Slice(items interface{}) (interface{}, error) {
+func (p *pageState) Slice(items any) (any, error) {
return page.ToPages(items)
}
@@ -37,7 +37,7 @@ func (p *pageState) Slice(items interface{}) (interface{}, error) {
// Group creates a PageGroup from a key and a Pages object
// This method is not meant for external use. It got its non-typed arguments to satisfy
// a very generic interface in the tpl package.
-func (p *pageState) Group(key interface{}, in interface{}) (interface{}, error) {
+func (p *pageState) Group(key any, in any) (any, error) {
pages, err := page.ToPages(in)
if err != nil {
return nil, err