{"id":18326509,"url":"https://github.com/ghosind/formatparser","last_synced_at":"2025-07-15T19:34:19.721Z","repository":{"id":97732395,"uuid":"463889584","full_name":"ghosind/formatparser","owner":"ghosind","description":"Parse format strings.","archived":false,"fork":false,"pushed_at":"2022-02-26T16:34:16.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T16:48:20.938Z","etag":null,"topics":["formatter","parser"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/ghosind/formatparser","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/ghosind.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-26T15:23:12.000Z","updated_at":"2022-02-26T16:38:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"8503cb12-39cc-455f-bf32-275026d55972","html_url":"https://github.com/ghosind/formatparser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ghosind/formatparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fformatparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fformatparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fformatparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fformatparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghosind","download_url":"https://codeload.github.com/ghosind/formatparser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghosind%2Fformatparser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265455144,"owners_count":23768492,"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":["formatter","parser"],"created_at":"2024-11-05T19:07:06.919Z","updated_at":"2025-07-15T19:34:19.673Z","avatar_url":"https://github.com/ghosind.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# formatparser\n\n![test](https://github.com/ghosind/formatparser/workflows/Test/badge.svg)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/79fba4a6e6084cc8b5755450e7bff9ef)](https://www.codacy.com/gh/ghosind/formatparser/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=ghosind/formatparser\u0026amp;utm_campaign=Badge_Grade)\n![Version Badge](https://img.shields.io/github/v/release/ghosind/formatparser)\n![License Badge](https://img.shields.io/github/license/ghosind/formatparser)\n[![Go Reference](https://pkg.go.dev/badge/github.com/ghosind/formatparser.svg)](https://pkg.go.dev/github.com/ghosind/formatparser)\n\nParse format string to text token part or key token part arrays.\n\n## Installation\n\n```sh\ngo get -u github.com/ghosind/formatparser\n```\n\n## Getting Started\n\n```go\npackage main\n\nimport (\n  \"log\"\n\n  \"github.com/ghosind/formatparser\"\n)\n\nfunc main() {\n  format := \"[%time] %message\"\n\n  parts := formatparser.Parse(format)\n\n  for _, part := range parts {\n    log.Println(part)\n  }\n}\n```\n\n```sh\n$ go run app.go\n\u0026{1 [}\n\u0026{2 time}\n\u0026{1 ] }\n\u0026{2 %message}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosind%2Fformatparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghosind%2Fformatparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghosind%2Fformatparser/lists"}