Use go 1.26 syntax

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-06 15:00:42 +01:00
parent 54f80596b6
commit d4b3025463
28 changed files with 136 additions and 167 deletions

View File

@@ -15,7 +15,6 @@
package pageinfo
import (
"go.gearno.de/x/ref"
"go.probo.inc/probo/pkg/page"
)
@@ -33,8 +32,8 @@ func NewPageInfo[T page.Paginable[O], O page.OrderField](p *page.Page[T, O]) *Pa
)
if len(p.Data) > 0 {
startCursor = ref.Ref(p.First().CursorKey(p.Cursor.OrderBy.Field))
endCursor = ref.Ref(p.Last().CursorKey(p.Cursor.OrderBy.Field))
startCursor = new(p.First().CursorKey(p.Cursor.OrderBy.Field))
endCursor = new(p.Last().CursorKey(p.Cursor.OrderBy.Field))
}
return &PageInfo{