{"id":21378018,"url":"https://github.com/halsten-dev/gormatter","last_synced_at":"2026-04-18T05:34:07.491Z","repository":{"id":263840509,"uuid":"886080397","full_name":"halsten-dev/gormatter","owner":"halsten-dev","description":"Gormatter in a small lib to help making colored and stylized outputs in the terminal.","archived":false,"fork":false,"pushed_at":"2024-11-20T14:48:55.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-09T02:34:04.468Z","etag":null,"topics":["color","easytouse","go","golang","lightweight","output","print","style","terminal"],"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/halsten-dev.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":"2024-11-10T06:12:03.000Z","updated_at":"2024-11-21T05:18:08.000Z","dependencies_parsed_at":"2024-11-20T15:39:50.951Z","dependency_job_id":"4d31d8cd-bc6c-4a70-a10d-9c35c8fc5b00","html_url":"https://github.com/halsten-dev/gormatter","commit_stats":null,"previous_names":["halsten-dev/gormatter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/halsten-dev/gormatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Fgormatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Fgormatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Fgormatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Fgormatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halsten-dev","download_url":"https://codeload.github.com/halsten-dev/gormatter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halsten-dev%2Fgormatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31957657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["color","easytouse","go","golang","lightweight","output","print","style","terminal"],"created_at":"2024-11-22T09:25:11.503Z","updated_at":"2026-04-18T05:34:07.474Z","avatar_url":"https://github.com/halsten-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gormatter\n\n## Introduction\nGormatter in a small lib to help making colored and stylized outputs in the terminal.\n\n## How to use\nImport the package :\n\n```go\nimport (\n\tgmt \"github.com/halsten-dev/gormatter\"\n)\n```\n\nThen there is choice between multiple function :\n\n```go\nfmt.Println(gmt.Bold(gmt.Red, gmt.None, \"Text in red and bold\"))\nfmt.Println(gmt.BoldItalic(gmt.Blue, gmt.Yellow, \"Text in blue, bold and italic with yellow background\"))\nfmt.Println(gmt.Italic(gmt.Yellow, gmt.Cyan, \"Text in yellow in italic with cyan background\"))\n```\n\nAvailable colors :\n\n```go\nBlack\nRed\nGreen\nYellow\nBlue\nMagenta\nCyan\nWhite\n\nHighBlack\nHighRed\nHighGreen\nHighYellow\nHighBlue\nHighMagenta\nHighCyan\nHighWhite\n```\n\nAvailable functions :\n\n```go\nfunc Normal(foregroundColor int, backgroundColor int, text string) string\n\nfunc Bold(foregroundColor int, backgroundColor int, text string) string\n\nfunc Italic(foregroundColor int, backgroundColor int, text string) string\n\nfunc Underline(foregroundColor int, backgroundColor int, text string) string\n\nfunc BoldItalic(foregroundColor int, backgroundColor int, text string) string\n\nfunc BoldUnderline(foregroundColor int, backgroundColor int, text string) string\n\nfunc BoldItalicUnderline(foregroundColor int, backgroundColor int, text string) string\n\nfunc ItalicUnderline(foregroundColor int, backgroundColor int, text string) string\n```\n\n## License\nMIT License\n\nCopyright (c) 2024 Lionel Leeser\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalsten-dev%2Fgormatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalsten-dev%2Fgormatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalsten-dev%2Fgormatter/lists"}