{"id":13713517,"url":"https://github.com/C0DE8/bmfmt","last_synced_at":"2025-05-06T23:32:17.169Z","repository":{"id":130012635,"uuid":"262539983","full_name":"C0DE8/bmfmt","owner":"C0DE8","description":"Golang [b]eautify [m]ap display [fmt] for Humans","archived":false,"fork":false,"pushed_at":"2020-05-20T06:08:11.000Z","size":33,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-03T23:27:22.293Z","etag":null,"topics":["beautifier","fmt","for-humans","formater","formatter","go","go-lang","go-library","golang","humans","prettifier","pretty"],"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/C0DE8.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":"2020-05-09T09:52:38.000Z","updated_at":"2023-04-20T05:08:46.000Z","dependencies_parsed_at":"2023-03-17T09:30:14.721Z","dependency_job_id":null,"html_url":"https://github.com/C0DE8/bmfmt","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C0DE8%2Fbmfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C0DE8%2Fbmfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C0DE8%2Fbmfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/C0DE8%2Fbmfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/C0DE8","download_url":"https://codeload.github.com/C0DE8/bmfmt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224526514,"owners_count":17325988,"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":["beautifier","fmt","for-humans","formater","formatter","go","go-lang","go-library","golang","humans","prettifier","pretty"],"created_at":"2024-08-02T23:01:38.420Z","updated_at":"2024-11-14T00:30:40.263Z","avatar_url":"https://github.com/C0DE8.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# bmfmt Golang [b]eautify [m]ap display [fmt] for Humans\n\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/c0de8/bmfmt/graphs/commit-activity)\n[![Github all releases](https://img.shields.io/github/downloads/c0de8/bmfmt/total.svg)](https://GitHub.com/c0de8/bmfmt/releases/)\n[![Build Status](https://travis-ci.com/C0DE8/bmfmt.svg?branch=master)](https://travis-ci.com/C0DE8/bmfmt)\n\n\n## Install\n\n``` shell\n# stable version\ngo get -u -v gopkg.in/c0de8/bmfmt.v0\n\n# latest version (may be unstable)\ngo get -u -v github.com/c0de8/bmfmt\n```\n\n## Supported Structures\n\n- map[string]string\n- map[string][]string\n\nMore structures are in implementation.\n\n## Usage\n\n[API Documentation](https://pkg.go.dev/github.com/c0de8/bmfmt?tab=doc)\n\n[Examples](https://github.com/c0de8/bmfmt/blob/master/examples/main.go)\n\n``` golang\npackage main\n\nimport (\n\t\"fmt\"\n\tbmfmt \"github.com/c0de8/bmfmt\"\n)\n\nfunc main() {\n\texample()\n}\n\nfunc example() {\n\n\tm := map[string][]string{\n\t\t\"some-key\": { \"response\" },\n\t\t\"Another-Hash-Key\": { \"first value\", \"second value\" },\n\t}\n\n\tfmt.Println(m) // fmt the default formatting\n\t/*\n         map[some-key:[response] Another-Hash-Key:[first value second value]]\n\t*/\n\n\terr := bmfmt.Beautify(m) // significant more friendly formatting\n\tif err != nil {\n\t\tfmt.Println(\"ERROR (bmfmt.Beautify): \" + err.Error())\n\t}\n\t/*\n         [ \"some-key\"          string(  8) ]: \"response\"                     string(  8)\n         [ \"Another-Hash-Key\"  string( 16) ]: \"first value\", \"second value\"  string( 23)\n\t*/\n\n}\n\n```\n\n## License\n\nbmfmt is licensed under the MIT License. See [LICENSE](https://github.com/c0de8/bmfmt/blob/master/LICENSE) for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FC0DE8%2Fbmfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FC0DE8%2Fbmfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FC0DE8%2Fbmfmt/lists"}