{"id":15517276,"url":"https://github.com/skx/headerfile","last_synced_at":"2025-03-28T19:48:05.722Z","repository":{"id":144201120,"uuid":"213560366","full_name":"skx/headerfile","owner":"skx","description":"Parse files with simple key:value headers, easily.","archived":false,"fork":false,"pushed_at":"2019-10-08T15:01:05.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T23:14:36.033Z","etag":null,"topics":["golang","header","library","utility"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"skx","custom":"https://steve.fi/donate/"}},"created_at":"2019-10-08T06:00:51.000Z","updated_at":"2023-01-10T19:24:00.000Z","dependencies_parsed_at":"2023-06-18T11:27:10.417Z","dependency_job_id":null,"html_url":"https://github.com/skx/headerfile","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fheaderfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fheaderfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fheaderfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skx%2Fheaderfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skx","download_url":"https://codeload.github.com/skx/headerfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246093105,"owners_count":20722395,"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":["golang","header","library","utility"],"created_at":"2024-10-02T10:12:20.363Z","updated_at":"2025-03-28T19:48:05.701Z","avatar_url":"https://github.com/skx.png","language":"Go","funding_links":["https://github.com/sponsors/skx","https://steve.fi/donate/"],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/skx/headerfile?status.svg)](http://godoc.org/github.com/skx/headerfile)\n[![Go Report Card](https://goreportcard.com/badge/github.com/skx/headerfile)](https://goreportcard.com/report/github.com/skx/headerfile)\n[![license](https://img.shields.io/github/license/skx/headerfile.svg)](https://github.com/skx/headerfile/blob/master/LICENSE)\n[![Release](https://img.shields.io/github/release/skx/headerfile.svg)](https://github.com/skx/headerfile/releases/latest)\n\n\n# headerfile\n\nThis is a simple package which allows you to process files which consist of a key-value header, and then content.\n\n\n## Use Case\n\nThe initial-use case was for a simple blog-compiler, which consumes a series of files containing posts.  As you might expect each post has some associated meta-data, such as a title, a set of tags, etc.\n\nThis library allows you to read the two parts of this file seperately, and cleanly:\n\n```\nSubject: This is my post\nDate: 10th March 1980\nTags: foo, bar, baz\n\nThis is my blog post ..\n```\n\nOnce parsed you can receive :\n\n* The body of the post.\n* A map containing the (string) keys and values present in the header.\n  * The header-values may be separated by either `:` or `=`.\n\n\n## Github Setup\n\nThis repository is configured to run tests upon every commit, and when\npull-requests are created/updated.  The testing is carried out via\n[.github/run-tests.sh](.github/run-tests.sh) which is used by the\n[github-action-tester](https://github.com/skx/github-action-tester) action.\n\nIf test-coverage drops beneath 100% this is a bug.  The package is simple\nenough that this should not be an undue burdon.\n\nSteve\n--\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskx%2Fheaderfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskx%2Fheaderfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskx%2Fheaderfile/lists"}