go-cursor-pagination
CommunityReusable cursor pagination for Go
Authorsaddam-eng-tech
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the inefficiencies and complexities of traditional offset-based pagination in Go microservices, providing a robust and scalable cursor-based solution.
Core Features & Use Cases
- Cursor Encoding/Decoding: Safely encodes and decodes cursors for reliable pagination state management.
- SQL Builder Helper: Assists in constructing efficient SQL queries for cursor-based retrieval.
- Generic Page Response: Provides a standardized
Page[T]type for consistent API responses. - gRPC Proto Additions: Includes necessary proto definitions for page tokens in gRPC services.
- Use Case: Implement infinite scrolling in a mobile app's feed by using this Skill to generate the backend pagination logic for fetching new items as the user scrolls down.
Quick Start
Add cursor-based pagination to my Go microservice for the 'User' entity, sorting by 'created_at' descending, with a primary key of 'uuid' and a default page size of 20.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-cursor-pagination Download link: https://github.com/saddam-eng-tech/ai-agent-skills/archive/main.zip#go-cursor-pagination Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.