{"id":22385239,"url":"https://github.com/acoshift/paginate","last_synced_at":"2025-07-31T04:33:00.419Z","repository":{"id":57480555,"uuid":"121521713","full_name":"acoshift/paginate","owner":"acoshift","description":"Pagination Logic for your template in Go","archived":false,"fork":false,"pushed_at":"2019-08-27T04:48:24.000Z","size":117,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T06:39:20.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acoshift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-14T14:45:38.000Z","updated_at":"2023-09-05T11:04:43.000Z","dependencies_parsed_at":"2022-09-26T17:41:17.160Z","dependency_job_id":null,"html_url":"https://github.com/acoshift/paginate","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acoshift%2Fpaginate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acoshift%2Fpaginate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acoshift%2Fpaginate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acoshift%2Fpaginate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acoshift","download_url":"https://codeload.github.com/acoshift/paginate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228216490,"owners_count":17886566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T01:22:23.183Z","updated_at":"2024-12-05T01:22:23.780Z","avatar_url":"https://github.com/acoshift.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# paginate\n\n[![Build Status](https://travis-ci.org/acoshift/paginate.svg?branch=master)](https://travis-ci.org/acoshift/paginate)\n[![Coverage Status](https://coveralls.io/repos/github/acoshift/paginate/badge.svg?branch=master)](https://coveralls.io/github/acoshift/paginate?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/acoshift/paginate)](https://goreportcard.com/report/github.com/acoshift/paginate)\n[![GoDoc](https://godoc.org/github.com/acoshift/paginate?status.svg)](https://godoc.org/github.com/acoshift/paginate)\n\nPagination Logic for your template\n\n## Example\n\n```html\n{{define \"pagination\"}}\n\u003cdiv\u003e\n    \u003ca href=\"?page=1\"\u003eFirst\u003c/a\u003e\n    \u003ca href=\"?page={{.Prev}}\"\u003ePrev\u003c/a\u003e\n    {{range .Pages 2 2}}\n        {{if eq . 0}}\n            \u003ca class=\"disabled\"\u003e...\u003c/a\u003e\n        {{else if eq $.Page .}}\n            \u003ca class=\"active\"\u003e{{.}}\u003c/a\u003e\n        {{else}}\n            \u003ca href=\"?page={{.}}\"\u003e{{.}}\u003c/a\u003e\n        {{end}}\n    {{end}}\n    \u003ca href=\"?page={{.Next}}\"\u003eNext\u003c/a\u003e\n    \u003ca href=\"?page={{.MaxPage}}\"\u003eLast\u003c/a\u003e\n\u003c/div\u003e\n{{end}}\n```\n\n![Example](https://github.com/acoshift/paginate/raw/master/demo.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facoshift%2Fpaginate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facoshift%2Fpaginate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facoshift%2Fpaginate/lists"}