{"id":16824905,"url":"https://github.com/tomnomnom/linkheader","last_synced_at":"2025-04-12T23:39:02.211Z","repository":{"id":41271393,"uuid":"47767383","full_name":"tomnomnom/linkheader","owner":"tomnomnom","description":"Golang HTTP Link header parser","archived":false,"fork":false,"pushed_at":"2023-09-13T16:41:29.000Z","size":15,"stargazers_count":96,"open_issues_count":2,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T23:38:59.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tomnomnom.png","metadata":{"files":{"readme":"README.mkd","changelog":null,"contributing":"CONTRIBUTING.mkd","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-10T14:34:55.000Z","updated_at":"2025-01-21T15:09:34.000Z","dependencies_parsed_at":"2024-06-18T13:58:49.452Z","dependency_job_id":"bfec1f89-5424-4a57-9898-68c43cff9317","html_url":"https://github.com/tomnomnom/linkheader","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":"0.13043478260869568","last_synced_commit":"02ca5825eb8097f10d9cc53da78481a85ad84e04"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomnomnom%2Flinkheader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomnomnom%2Flinkheader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomnomnom%2Flinkheader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomnomnom%2Flinkheader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomnomnom","download_url":"https://codeload.github.com/tomnomnom/linkheader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647255,"owners_count":21139081,"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-10-13T11:12:23.281Z","updated_at":"2025-04-12T23:39:02.185Z","avatar_url":"https://github.com/tomnomnom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golang Link Header Parser\n\nLibrary for parsing HTTP Link headers. Requires Go 1.6 or higher.\n\nDocs can be found on [the GoDoc page](https://godoc.org/github.com/tomnomnom/linkheader).\n\n[![Build Status](https://travis-ci.org/tomnomnom/linkheader.svg)](https://travis-ci.org/tomnomnom/linkheader)\n\n## Basic Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/tomnomnom/linkheader\"\n)\n\nfunc main() {\n\theader := \"\u003chttps://api.github.com/user/58276/repos?page=2\u003e; rel=\\\"next\\\",\" +\n\t\t\"\u003chttps://api.github.com/user/58276/repos?page=2\u003e; rel=\\\"last\\\"\"\n\tlinks := linkheader.Parse(header)\n\n\tfor _, link := range links {\n\t\tfmt.Printf(\"URL: %s; Rel: %s\\n\", link.URL, link.Rel)\n\t}\n}\n\n// Output:\n// URL: https://api.github.com/user/58276/repos?page=2; Rel: next\n// URL: https://api.github.com/user/58276/repos?page=2; Rel: last\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomnomnom%2Flinkheader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomnomnom%2Flinkheader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomnomnom%2Flinkheader/lists"}