{"id":22506550,"url":"https://github.com/a-poor/golors","last_synced_at":"2025-07-09T23:14:02.900Z","repository":{"id":57615254,"uuid":"381774199","full_name":"a-poor/golors","owner":"a-poor","description":"A tiny golang package for formatting text in the terminal.","archived":false,"fork":false,"pushed_at":"2021-07-06T22:59:37.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-01T12:57:42.743Z","etag":null,"topics":["bash-colors","colors","go","golang"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/a-poor/golors","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/a-poor.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}},"created_at":"2021-06-30T16:55:20.000Z","updated_at":"2021-07-06T22:59:39.000Z","dependencies_parsed_at":"2022-09-13T15:52:17.495Z","dependency_job_id":null,"html_url":"https://github.com/a-poor/golors","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/a-poor/golors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fgolors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fgolors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fgolors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fgolors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-poor","download_url":"https://codeload.github.com/a-poor/golors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-poor%2Fgolors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505085,"owners_count":23618887,"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":["bash-colors","colors","go","golang"],"created_at":"2024-12-07T00:44:13.182Z","updated_at":"2025-07-09T23:14:02.882Z","avatar_url":"https://github.com/a-poor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# golors\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/a-poor/golors.svg)](https://pkg.go.dev/github.com/a-poor/golors)\n\n_created by Austin Poor_\n\nA tiny go package for printing colorful text to the terminal.\n\nFunctions wrap `fmt.Print` and `fmt.Println` for the following colors:\n\n* Red\n* Green\n* Yellow\n* Blue\n* Purple\n* Cyan\n* Gray\n* Grey (alias of Gray)\n* White\n\n## Example\n\n```go\npackage main\n\nimport \"github.com/a-poor/golors\"\n\nfunc main() {\n    // Print red text and a new-line character\n    golors.Redln(\"This text is red!\")\n    \n    // These three commands print a single line \"whitecyanpurple\"\n    // but where each word is the correct color\n    golors.White(\"white\")\n    golors.Cyan(\"cyan\")\n    golors.Purpleln(\"purple\")\n}\n```\n\nAnd the result is:\n\n![Screenshot of Sample Color Bash Output](sample-bash-output.png)\n\n## ToDo\n\nInclude more colors, background colors, and text styles (_ie_ bold, faint, italics, and underlined)\n\n[Reference article](https://dev.to/ifenna__/adding-colors-to-bash-scripts-48g4)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-poor%2Fgolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-poor%2Fgolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-poor%2Fgolors/lists"}